Description Usage Arguments Details Value See Also Examples
cormid
calculates cummulative weights as the mean
of sup- and inf-corrected weights
(mid-corrected weights).
1 | cormid(xs)
|
xs |
object from class |
If cummulative weights are NULL they will be calculated
from the individual ones by indiv2cum
.
object from class wtsamp
whose cummulative weights are
mid-corrected and individual weights are set to NULL.
Maiboroda R. and Kubaichuk O. Asymptotic normality of improved weighted empirical distribution functions. Theor. Probability and Math. Statist. 69 (2004), 95-102
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.