boot.r2 {affluenceIndex}R Documentation

Bootstrap standard error 2

Description

Calculates the bootstrap standard errors.

Usage

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

Arguments

x

income vector

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

Details

The function uses quantile method of calculating bootstrap confidence intervals.

Value

se.r

the bootstrap error

summary

bootstrap summary

Author(s)

Alicja Wolny-Dominiak

References

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

Examples

data(affluence)
boot1 <-boot.r2(affluence$income[1:300], 2,2,500, "r.cha")
boot1$summary

boot2 <-boot.r2(affluence$income[1:300], 2,2,500, "r.fgt")
boot2$summary

[Package affluenceIndex version 1.0 Index]