cormid: Mid-correction of cummulative weights of a sample

Description Usage Arguments Details Value See Also Examples

Description

cormid calculates cummulative weights as the mean of sup- and inf-corrected weights (mid-corrected weights).

Usage

1
cormid(xs)

Arguments

xs

object from class wtsamp containing the sample and weights for components' distributions.

Details

If cummulative weights are NULL they will be calculated from the individual ones by indiv2cum.

Value

object from class wtsamp whose cummulative weights are mid-corrected and individual weights are set to NULL.

See Also

Maiboroda R. and Kubaichuk O. Asymptotic normality of improved weighted empirical distribution functions. Theor. Probability and Math. Statist. 69 (2004), 95-102

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
p <- genunifp(15,2) # create mixing probabilities
a <- lsweight(p) # calculate minimax weights
# create a weighted sample:
xs <- wtsamp(genormixt(p,c(0,1),c(1,1)),indiv=a)
F1 <- edfgen(xs,1) # minimax the estimate for 1-st component
xs_mid <- cormid(xs)
F1_mid <- edfgen(xs_mid,1) # mid-corrected estimate for 1-st component
F1(0)
F1_mid(0)
plot(F1,-3,3)
curve(F1_mid,col="red",,lty="dashed",add=TRUE)

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