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 )
Dataframe of features to retain, must have column with name 'exposure' that has list of exposures tor etain from mvdat. The default is
Should the intercept by estimated (
Should the estimate for each exposure be obtained by using all instruments from all exposures (
P-value threshold to include instruments. The default is
Create plots? The default is
List of results