boot.sd1.sub | R Documentation |
The estimation of bootstrap standard error of affluence index in subpopulation.
boot.sd1.sub(x.sub, x, weight.sub, weight, kp, nsim, boot.index=c("r.hc", "r.is"), gamma)
x |
income vector of subpopulation |
x.sub |
income vector of population |
weight.sub |
weight vector of subpopulation |
weight |
weight vector of population |
kp |
multiple of the median income (k) or order of quantile (p) |
nsim |
the number of replications |
boot.index |
the index for which the error is estimated |
gamma |
confidence level |
The function uses quantile method of calculating bootstrap confidence intervals.
se.r |
the bootstrap error of the affluence index |
summary |
bootstrap summary |
boot.ind |
bootstraped sample of index |
Alicja Wolny-Dominiak
Brzezinski M. (2010) Income affluence in Poland. Social Indicators Research, 99, pp. 285-299.
data(affluence)
affluence$weight <- rep(1, nrow(affluence))
aff.sub <- subset(affluence, education == 2)
boot.sd1.sub(aff.sub$income, affluence$income, aff.sub$weight, affluence$weight,
0.9, 10, "r.is", 0.95)
boot.sd1.sub(aff.sub$income, affluence$income, aff.sub$weight, affluence$weight,
0.9, 10, "r.hc", 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.