KMcdf: Kaplan-Meyer's estimator for CDFs of mixture components

Description Usage Arguments Value See Also Examples

Description

KMcdf calculates cummulative weigts for the Kaplan-Meyer estimator of CDFs of mixture components by a censored sample of class wtcens and returns an object of class wtsamp with the sample values and the calculated weights.

Usage

1
KMcdf(cs)

Arguments

cs

object of class wtcens censored sample with weights representing the distributions of the censored components.

Value

object of class wtsamp containing the sample values and the cummulative weights for the distributions of the components.

See Also

Maiboroda R. Khizanov V. A modified Kaplan–Meier estimator for a model of mixtures with varying concentrations Theor. Probability and Math. Statist. 92 (2016), 109-116

Examples

1
2
3
4
5
6
7
8
9
set.seed(3)
n<-5000
p<-genunifp(n,2)
xs<-gencensg(p,shape=c(1.5,4),rate=c(1,1),shapec=c(1,1),ratec=c(0.3,0.3))
cs<-wtcens(x=xs$x,delta=xs$delta,indiv=lsweight(p))
KMest<-KMcdf(cs)
FKM<-edfgen(KMest,2)
curve(FKM,0,8)
curve(pgamma(x,shape=4,rate=1),col="red",add=TRUE)

RostyslavMaiboroda/mixvconc documentation built on June 12, 2019, 12:34 a.m.