NN.options: Create a list of options which control the nearest neighbour...

View source: R/options.R

NN.optionsR Documentation

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)

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)

Value

A list of options used within the ScoreImputedData function


InformativeCensoring documentation built on June 7, 2023, 6:09 p.m.