View source: R/multivariable_mr.R
mv_subset | R Documentation |
The function proceeds as follows:
Select features (by default this is done using LASSO feature selection).
Subset the mvdat to only retain relevant features and instruments.
Perform MVMR on remaining data.
mv_subset(
mvdat,
features = mv_lasso_feature_selection(mvdat),
intercept = FALSE,
instrument_specific = FALSE,
pval_threshold = 5e-08,
plots = FALSE
)
mvdat |
Output from |
features |
Dataframe of features to retain, must have column with name 'exposure' that has list of exposures to retain from mvdat. The default is |
intercept |
Should the intercept by estimated ( |
instrument_specific |
Should the estimate for each exposure be obtained by using all instruments from all exposures ( |
pval_threshold |
P-value threshold to include instruments. The default is |
plots |
Create plots? The default is |
List of results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.