boot.sd1: Bootstrap standard error 1

Description Usage Arguments Details Value Author(s) References Examples

View source: R/boot.sd1.R

Description

Calculates the bootstrap standard errors.

Usage

1
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

1
2
3
4
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)

affluenceIndex documentation built on Jan. 5, 2022, 5:07 p.m.