Probs.Sub: Calculate subgroup survival probabilities

View source: R/Functions.R

Probs.SubR Documentation

Calculate subgroup survival probabilities

Description

Calculate Subgroup survival probabilities basedon the Kaplan-Meier estimation procedure

Usage

Probs.Sub(tstar, sdata, G)

Arguments

tstar

time points that the survival probabilities will be estimated at.

sdata

a survival dataset (dataframe) in which to interpret the variables named in the formula and the cureform.

G

a matrix used to indicate which subgroups he/she belongs to for each of these subjects.

Value

It returns the estimated subgroup survival probabilities for a given survival dataset.


CureAuxSP documentation built on May 29, 2024, 12:29 p.m.