Main function for Inverse odds ratio weighting, internal use.
1 2 3 4 5 6 7 8 9 10 |
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.