Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

z

the vector of zi = minXi, Yi

delta

the vector of indicators which is 1 when Xi<=Yi and 0 otherwise

lambda.hat

the estimate of lambda from the data

alpha

the degree of faith in F0

npoints

the number of estimated points returned

Value

Returns a list containing:

x

the x values

F.hat

the Susarla-van Ryzin estimator

Note

Requires the survival library.

Author(s)

Rachel Becvarik

Examples

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,])

NSM3

Functions and Datasets to Accompany Hollander, Wolfe, and Chicken - Nonparametric Statistical Methods, Third Edition

v1.16
GPL-2
Authors
Grant Schneider, Eric Chicken, Rachel Becvarik
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.