Description Usage Arguments Value Examples
Gives the variance of the AK estimators from the A,K coefficients and the variance covariance matrix of the month in sample estimates
1 2 3 4 5 6 7 8 9 |
Y |
A named array of dimension nmonth x 3 x 8. mistotals[m,e,g] is the month in sample direct estimate for month m, month in sample rotation group g, and variable e. |
W |
(optional) if already computed, the array |
ak: |
an ak coefficients vector or a list of ak coefficients. |
The variance of the AK estimators from the A,K coefficients and the variance covariance matrix .
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(dataCPS)
period=200501:200512
list.tables<-lapply(data(list=paste0("cps",period),package="dataCPS"),get);
names(list.tables)<-period
Y<-WSrg(list.tables,weight="pwsswgt",list.y="pemlr",rg="hrmis")
dimnames(Y);
Y<-plyr::aaply(Y,1:2,function(x){c(n=sum(x[c(1,6:8)]),u=sum(x[4:5]),e=sum(x[2:3]))})
names(dimnames(Y))[3]<-"y";
dimnames(Y)
month="m";
mis="hrmis";
y="y";
CPS_AK_est(Y,y=y,mis=mis)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.