Description Usage Arguments Value Examples
cumm2indiv
calculates differences with lag 1 from
cummulative weights and put them into individual weights
attribute.
1 | cumm2indiv(xs)
|
xs |
a |
an object of the same class as xs
with recalculated
individual 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.