Description Usage Arguments Value Examples
indiv2cumm
calculates cummulative sums of
individual weights and put them into cummulative weights
attribute.
1 | indiv2cumm(xs)
|
xs |
a |
an object of the same class as xs
with recalculated
cummulative weights.
1 2 3 4 5 6 7 | set.seed(3)
p <- genunifp(10,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)
ys <- indiv2cumm(xs) # create cummulative weights
xs1 <- cumm2indiv(ys) #xs1 is the same as xs
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.