Title


iv -- Instrumental variable (IV) programs useful for one-sample Mendelian randomization (MR) analyses

Syntax

iv subcommand ... [aweight] [if] [in] [, options]

Description

iv is a simple wrapper to the commands in the ivonesamplemr package.

The subcommand is specified as the mrrobust program name without its iv prefix, i.e. ivlsmm ... can alternatively be run using the syntax iv lsmm ....

Options

iv takes the options for the specified subcommand.

Examples

. use https://raw.github.com/remlapmot/ivonesamplemr/main/data/ivbinoutdata, clear

Fit the model with a single instrumental variable.

. iv lsmm y (x = z1)

. iv msmm y (x = z1 z2 z3)

. iv tsps y (x = z1 z2 z3), link(logit)

. iv tsri y (x = z1 z2 z3), link(logit)

Stored results

iv returns the results from the specified subcommand.

Author

INCLUDE help ivonesamplemr-author