calc.CER.lrm: Calculate effect sizes for CER analyses

Description Usage Arguments Value

View source: R/calc.CER.lrm.R

Description

This function uses two-stage least squares regression to estimate a causal treatment effect with an instrumental variable. For info or explanation, please contact: b.gravesteijn@erasmusmc.nl

Usage

1
2
calc.CER.lrm(mids.data = NULL, orig.data = NULL, instrument = NULL,
  therapy = NULL, outcome = NULL, subset.cer = NULL)

Arguments

mids.data

A MIDS: a MICE imputed dataset

orig.data

The original data.frame/data.table which was imputed

instrument

A character of the name of the instrumental variable

therapy

A character of the name of the therapy

outcome

A character of the outcome parameter

subset.cer

A logical vector (with length equal to the number of cases), which indicates included and excluded cases

Value

Returns a vector of the estimate with 95


bgravesteijn/bgravesteijn documentation built on Aug. 13, 2019, 6:32 p.m.