NN {prodlim} | R Documentation |
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.
NN(x)
x |
A continuous predictor |
The argument is passed on as it is: NN(x)=x
Thomas Gerds
## Not run: require(survival) data(pbc) prodlim(Hist(time,status)~NN(age),data=pbc) ## End(Not run)