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

Description Usage Arguments Value

View source: R/IV.calc.R

Description

Using an instrumental variable approach, calculate the effect estimate for a therapy. As instrument, any type of instrument may be used (continuous/ordinal/binary/categorical). The therapy must be a binary variable, and the outcome may be both binary (logistic regression) as ordinal (proportional odds regression). Make sure the assumptions are correct, before using this funciton!

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/bgravesteijn documentation built on Aug. 13, 2019, 6:32 p.m.