IV.calc: Instrumental variable analysis for multiple imputed datasets.

Description Usage Arguments Value

Description

Instrumental variable analysis for multiple imputed datasets.

Usage

1
2
IV.calc(instrument = NULL, therapy = NULL, outcome = NULL,
  mids = NULL)

Arguments

instrument

A character value of the name of the instrumental variable (any type)

therapy

A character value of the name of the binary therapy

outcome

A character value of the name of the outcome variable, both binary as ordinal.

mids

A mids object, of the multiple imputed dataset which we will use for the IV analysis.

Value

Returns a vector with the effect estimate with 95


bgravesteijn/IVBG documentation built on May 9, 2019, 4:22 a.m.