Learn R Programming

prodlim (version 1.3.7)

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

Value

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

See Also

prodlim

Examples

Run this code
library(survival)
data(pbc)
prodlim(Hist(time,status)~NN(age),data=pbc)

Run the code above in your browser using DataLab