ps.strata.survival: Evaluate a survival model

Description Usage Arguments Details Value Examples

Description

Evaluate a survival outcome model for the stratified dataset.

Usage

1
2
ps.strata.survival(data, strata, outcome, estimand = "ATT",
  covariates = character())

Arguments

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

Details

This function evaluates an outcome model for each stratum and then pools the models to evaluate the overall treatment effect

Value

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.

Examples

1
2
3
4
## Not run: 
ps.strata.survival(myData, myData$strata, "MISURVIVAL")

## End(Not run)

OHDSI/Centaur documentation built on May 7, 2019, 8:22 p.m.