estirow: Inverse odds ratio weighting

Description Usage Arguments

View source: R/iorw.R

Description

Main function for Inverse odds ratio weighting, internal use.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
estirow(
  fitA,
  fitY,
  data,
  exposure,
  mediator,
  family,
  ref = NULL,
  stabilized = TRUE
)

Arguments

fitA

Exposure model formula, glm will be used in this step.

fitY

model object of the final outcome, all variables of interest should be included except mediators.

data

Data set to be sued, if NULL, the data from outcome model will be used.

exposure

Intervention/Exposure variable

mediator

Name of the mediator(s).

family

a description of the error distribution and link function to be used in the exposure model. Only binomial and gaussian supported now.

ref

Only for one categorical mediator, set to NULL for numerical mediator or multiple mediator. Reference value of the mediator, where the mediator is evaluated at its refrence value.

stabilized

Stabilized weights, TRUE(default) or FALSE.


adayim/causalMed documentation built on June 2, 2020, 4:11 p.m.