Learn R Programming

pscDesign (version 1.0.0)

fpmSurv: Generate a survival function from a flexible parametric model

Description

A function to estimate the survival function based on parameter estimates.

Usage

fpmSurv(CFM, beta = NULL, lp = NULL, maxTime = 24)

Value

A survival function

Arguments

CFM

a Counter-Factual model

beta

parameter with which to adjust the baseline function (defaults to beta=0)

lp

a linear predictor which if supplies will be used to adjust the parameters of the survival function

maxTime

maximum time used in the estimation

Details

This functions extracts the baseline (cumulative) hazard parameters from a counter factual model and uses these to construct survival estimates. This is used in the simulation of datasets. If a (log) hazard ratio, beta, or a linear predictor, lp, are supplied - these will be used to adjust the baseline estimates.