Learn R Programming

InformativeCensoring (version 0.3.6)

NN.options: Create a list of options which control the nearest neighbour algorithm for risk score imputation

Description

Create a list of options which control the nearest neighbour algorithm for risk score imputation

Usage

NN.options(NN = 5, w.censoring = 0.2, min.subjects = 20)

Value

A list of options used within the ScoreImputedData function

Arguments

NN

The (maximum) number of subjects to be included in the risk set

w.censoring

The weighting on the censoring risk score when calculating distances for the nearest neighbour calculation A weighting of (1-w.censoring) is used for the event risk score

min.subjects

If using time dependent score imputation include at least this number of subjects when fitting the Cox model (i.e. include some subjects who were censored/had event earlier than the cenosred observation if neccessary)