Description Usage Arguments Details Value Examples
Evaluate a regression outcome model for the stratified dataset.
1 2 | ps.strata.regression(data, strata, outcome, estimand = "ATT",
covariates = character(), family = binomial())
|
data |
Data Frame - containing the stratified dataset. The data frame must contain a treatment indicator variable called 'treat' and a propensity score value called 'ps_values'. |
strata |
Vector - containing the stratum that each subject is assigned to |
outcome |
The outcome variable name |
estimand |
String, the desired estimand ("ATT" or "ATE"), default (ATT). |
covariates |
Vector, containing the names of the additional covariates to include in the outcome analysis |
family |
- Model family, passed through to glm |
This function evaluates an outcome model for each strata and then pools the models to evaluate the overall treatment effect
An object of type "strata.model". This object contains the model information for each strata in object$models, as well as the pooled treatment effect information in object$treatment.effect.
1 2 3 4 | ## Not run:
ps.strata.regression(myData, strata, "outcome")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.