idf: Interval Distribution Function

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/npsurv.R

Description

Class idf can be used to store a distribution function defined on a set of intervals. There are several functions associated with the class.

Usage

1
2
3
idf(left, right, p)
## S3 method for class 'idf'
print(x, ...)

Arguments

left, right

left and right endpoints of intervals on which the distribution function is defined.

p

probabilities allocated to the intervals. Probability values will be normalized inside the function.

x

an object of class idf.

...

other arguments for printing.

Details

idf creates an object of class idf. An idf object stores a distribution function defined on a set of intervals.

When left and right endpoints are identical, the intervals just represent exact points.

print.idf prints an object of class idf as a three-coumn matrix.

Value

left, right

left and right endpoints of intervals on which the distribution function is defined.

p

probabilities allocated to the intervals.

Author(s)

Yong Wang <yongwang@auckland.ac.nz>

See Also

icendata, Deltamatrix, npsurv.

Examples

1
2
idf(1:5, 1:5*3-2, c(1,1,2,2,4))
npsurv(cbind(1:5, 1:5*3-2))$f    # NPMLE 

npsurv documentation built on Oct. 23, 2020, 5:43 p.m.

Related to idf in npsurv...