Learn R Programming

prodlim (version 1.4.5)

NN: Dummy function

Description

This is a special function used in the context of the conditional product limit estimator. It is similar to the function strata and can be used in a formula to force a stratified analysis in nearest neighborhoods defined by the values of a continuous predictor.

Usage

NN(x)

Arguments

x
A continuous predictor variable

Value

  • The argument is passed on as it is: NN(x)=x

See Also

prodlim

Examples

Run this code
dat <- SimSurv(20)
prodlim(Hist(time,status)~NN(X2),data=dat)

Run the code above in your browser using DataLab