| tax {samplingbook} | R Documentation |
Hypothetical Tax Refund Data Frame
Description
Simulated tax refund data frame including the estimated and actual refund value
Usage
data(tax)
Format
A data frame with 9083 observations on the following 5 variables.
ida numeric vector indicating the tax payer
estRefunda numeric vector representing the estimated value of tax refund by the tax payer
actRefunda numeric vector representing the actual tax refund calculated by the financial authority
diffdifference between estimated and acture tax refund
Classa factor with levels
1,2,3, and4indicating the strata
Source
Due to data protection this is a simulated data set reflecting the real data.
References
Kauermann, Goeran/Kuechenhoff, Helmut (2010): Stichproben. Methoden und praktische Umsetzung mit R. Springer.
Examples
data(tax)
summary(tax)
# illustration of stratamean
nh <- as.vector(table(tax$Class))
wh <- nh/sum(nh)
stratamean(y=tax$diff, h=as.vector(tax$Class), wh=wh, eae=TRUE)
[Package samplingbook version 1.2.4 Index]