Learn R Programming

pseval (version 1.3.1)

riskcalc: Calculate risks with handlers for survival data

Description

Calculate risks with handlers for survival data

Usage

riskcalc(risk.function, Y, par, t, dat0, dat1)

Arguments

risk.function

Function taking three arguments, a data.frame, parameters, and time. It should return a vector the same number of rows as the data frame

Y

The outcome variable

par

the vector of parameter values

t

Time for a survival outcome, may be missing

dat0

Data frame containing S and Z = 1

dat1

Data frame containing S and Z = 0