riskScore: Calcutes dynamic risk score at a time for an individual...

View source: R/riskScore.R

riskScoreR Documentation

Calcutes dynamic risk score at a time for an individual (helper to predLMrisk)

Description

Calcutes dynamic risk score at a time for an individual (helper to predLMrisk)

Usage

riskScore(model, tLM, data, func_covars, func_LMs)

Arguments

model

A coxph object

tLM

Landmarking time point at which to calculate risk score (time at which the prediction is made)

data

Dataframe (single row) of individual. Must contain the original covariates.

func_covars

A list of functions to use for interactions between LMs and covariates.

func_LMs

A list of functions to use for transformations of the landmark times.

Value

Numeric risk score


anyafries/dynLM documentation built on July 26, 2022, 12:17 a.m.