Learn R Programming

NSM3 (version 1.1)

svr.df: Susarla-van Ryzin

Description

Function to compute the Susarla-van Ryzin estimator

Usage

svr.df (z, delta, lambda.hat=0.001, alpha = 3, npoints=2053)

Arguments

Value

Returns a list containing:xthe x valuesF.hatthe Susarla-van Ryzin estimator

Examples

Run this code
hodgkins.affected<-matrix(c(1, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 1,0, 1, 1, 0, 1, 0, 1, 0, 1, 0,
0, 1, 346, 141, 296, 1953, 1375, 822, 2052, 836, 1910, 419,  107, 570, 312,1818, 364, 401, 1645,
330, 1540, 688, 1309, 505, 1378, 1446, 86),nrow=2,byrow=TRUE)
svr.df(hodgkins.affected[2,], hodgkins.affected[1,])

Run the code above in your browser using DataLab