boot.sd2 {affluenceIndex}R Documentation

Bootstrap standard error 2

Description

Calculates the bootstrap standard errors.

Usage

boot.sd2(x, weight, k, alpha, nsim, boot.index = c("r.cha", "r.fgt"), gamma)

Arguments

x

income vector

weight

weight vector of population

k

multiple of the median income

alpha

parameter of the index: alpha > 0 for "r.cha", alpha > 1 for "r.fgt"

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

vector of bootstraped index

Author(s)

Alicja Wolny-Dominiak

References

Brzezinski M. (2010) Income affluence in Poland. Social Indicators Research, 99, pp. 285-299.

Examples

data(affluence)
boot.sd2(affluence$income, weight = NULL, 2, 2, 10, "r.cha", 0.95)
boot.sd2(affluence$income, weight = NULL, 2, 2, 10, "r.fgt", 0.95)

[Package affluenceIndex version 2.1 Index]