STEPPSurvModel: STEPPSurvModel

Description Usage Arguments

View source: R/STEPPup.R

Description

A helper function for the STEPP analysis in case of a surival response: if a treatment is given a Cox model is used with optional covariates. If no treatment is given a survival rate (or more precisely the survival probability) is estimated using the Kaplan-Meier estimate at a given timepoint

Usage

1
STEPPSurvModel(response, treat, covars = NULL, data, timepoint = 60, alpha)

Arguments

response

the response, must be a Surv object

treat

the name of the treatment variable in the data

covars

optinal names of covariates

data

the data frame used for evalution

the

timepoint for evaluating the KM estimate, only used if no treatment is given

alpha

the alpha level used for confidence intervals


sagade/STEPPup documentation built on Dec. 31, 2020, 3:15 a.m.