boot.sd1 {affluenceIndex} | R Documentation |
Bootstrap standard error 1
Description
Calculates the bootstrap standard errors.
Usage
boot.sd1(x, weight, kp, nsim, boot.index = c("r.hc", "r.is"), gamma)
Arguments
x |
income vector |
weight |
vector of weights |
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 |
Details
The function uses quantile method of calculating bootstrap confidence intervals.
Value
se.r |
the bootstrap error |
summary |
bootstrap summary |
boot.ind |
bootstraped sample of index |
Author(s)
Alicja Wolny-Dominiak
References
Brzezinski M. (2010) Income affluence in Poland. Social Indicators Research, 99, pp. 285-299.
Examples
data(affluence)
affluence$weight <- rep(1, nrow(affluence))
boot.sd1(affluence$income, affluence$weight, 0.9, 10, "r.is", 0.95)
boot.sd1(affluence$income, affluence$weight, 2, 10, "r.hc", 0.95)
[Package affluenceIndex version 2.1 Index]