Wdataclean2: Internal dblcens functions

Wdataclean2R Documentation

Internal dblcens functions

Description

Internal dblcens functions

Usage

Wdataclean2(z, d, wt=rep(1,length(z)))

Arguments

z

a vector of length n denoting observed times, (ties permitted)

d

a vector of length n that contains censoring indicator: d = 2 or 1 or 0, (according to z being left, not, right censored)

wt

a vector of length n that is used to derive the number of ties. By default it is a “1” vector of length n.

Details

These are not intended to be called by the user.

Wdataclean2 will sort the data and collaps those that are true ties, and the number of tied value is in the weights. Same code as in the package emplik.

Value

value

Cleaned survival times.

d

Cleaned Censoring status of the above times.

weight

a vector that indicate the number of ties.

Examples

z <- c(0.312 ,0.808 ,0.793 ,2.119 ,0.152 ,0.104 ,1.002 ,0.82 ,0.356 ,0.618)
d <- c(1, 0, 0, 0, 0, 0, 1, 0, 0, 0)
Wdataclean2(z,d)

dblcens documentation built on Jan. 13, 2023, 5:09 p.m.

Related to Wdataclean2 in dblcens...