50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


affluenceIndex (version 2.2)

boot.sd2.sub: Bootstrap standard error 2

Description

Calculates the bootstrap standard errors in subpopulation.

Usage

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

Value

se.r

the bootstrap error

summary

bootstrap summary

Arguments

x

income vector of subpopulation

x.sub

income vector of population

weight.sub

weight vector of subpopulation

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

Author

Alicja Wolny-Dominiak

Details

The function uses quantile method of calculating bootstrap confidence intervals.

References

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

Examples

Run this code
data(affluence)
affluence$weight <- rep(1, nrow(affluence))
aff.sub <- subset(affluence, education == 2)

x <- aff.sub$income
boot.sd2.sub(x, affluence$income, aff.sub$weight, affluence$weight, 2, 2, 10, "r.cha", 0.95)
boot.sd2.sub(x, affluence$income, aff.sub$weight, affluence$weight, 2, 2, 10, "r.fgt", 0.95)

Run the code above in your browser using DataLab