Description Usage Arguments Value
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!
1 2 |
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. |
Returns a vector with the effect estimate with 95
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.