Description Usage Arguments Details Value Examples
Evaluate a survival outcome model for the stratified dataset.
1 2 | ps.strata.survival(data, strata, outcome, estimand = "ATT",
covariates = character())
|
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. The variable must contain a precomputed survival object |
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 |
This function evaluates an outcome model for each stratum 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.survival(myData, myData$strata, "MISURVIVAL")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.