Skip to content

Commit

Permalink
modif K vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
FloPittion committed Apr 4, 2024
1 parent 5d4361e commit 99096d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
23 changes: 1 addition & 22 deletions vignettes/hdmax2_multivariate.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ plot((pc$sdev^2/sum(pc$sdev^2))[1:10],
xlab = 'Principal Component',
ylab = "Explained variance")
K=5 #pca conclusion : it is better to select too many factors that too few
K=4 #pca conclusion : it is better to select too many factors that too few
```


Expand Down Expand Up @@ -196,27 +196,6 @@ hdmax2_step2 = hdmax2::estimate_effect(object = hdmax2_step1,
```



This step use `mediation::mediate` function to obtain several effects estimation:

- ACME Average Causal Mediation Effect

- PM Proportion Mediate

- TE total effect

- ADE Average Direct Effect

This step also compute Overall effects :

- OIE (Indirect effect)

- ODE (Direct Effect)

- OTE (Total Effect)

And regression effects size.

### Vizualisation of results

We propose a set of plots which including:
Expand Down
2 changes: 1 addition & 1 deletion vignettes/hdmax2_univariate.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ plot((pc$sdev^2/sum(pc$sdev^2))[1:10],
xlab = 'Principal Component',
ylab = "Explained variance")
K=8 #pca conclusion : it is better to select too many factors that too few
K=4 #pca conclusion : it is better to select too many factors that too few
```


Expand Down

0 comments on commit 99096d8

Please sign in to comment.