instr_vars: Compute ITT, CACE and ATT from Instrument Variables

View source: R/instr_vars.R

instr_varsR Documentation

Compute ITT, CACE and ATT from Instrument Variables

Description

Compute ITT, CACE and ATT from instrument variables.

Usage

instr_vars(
  data,
  formula,
  exposure.name,
  instrument.name,
  tol = .Machine$double.eps^0.5
)

iv.r(
  data,
  formula,
  exposure.name,
  instrument.name,
  tol = .Machine$double.eps^0.5
)

Arguments

data

Dataframe of raw data.

formula

Formula representing the model.

exposure.name

Name of exposure variable.

instrument.name

Name of instrument variable.

tol

Numeric > 0. Tolerance used in estimation. Default is .Machine$double.eps^0.5.

Details

See section 9.3 on p. 164 for details. When the tolerance is not met, the

Value

Dataframe in a useable format for rsample::bootstraps.

Source

Section 9.3


FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.