Description Usage Arguments Value Note See Also Examples
The elements of the CalSSB object are taken directly from the input parameters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
x |
NULL or an existing calSSB object |
y |
y |
w |
w |
wGross |
wGross |
resids |
resids |
resids2 |
resids2 |
leverages |
leverages |
leverages2 |
leverages2 |
samplingWeights |
samplingWeights |
extra |
extra |
id |
id |
wave |
wave |
A CalSSB object. That is, an object of the type retuned by CalibrateSSB
.
If x is a ReGenesees/cal.analytic object, this function is a wrapper to CalSSBobjReGenesees
.
CalibrateSSB
, CalSSBobjReGenesees
, WideFromCalibrate
, PanelEstimation
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #' # Generates data - two years
z <- AkuData(3000) # 3000 in each quarter
zPop <- AkuData(10000)[, 1:7]
# Create a CalSSB object by CalibrateSSB
b <- CalibrateSSB(z, calmodel = "~ sex*age", partition = c("year", "q"), popData = zPop,
y = c("unemployed", "workforce"))
# Modify the CalSSB object
a <- CalSSBobj(b, w = 10*b$w, wave = CrossStrata(z[, c("year", "q")]), id = z$id)
# Use the CalSSB object as input ...
PanelEstimation(WideFromCalibrate(a), "unemployed", linComb = PeriodDiff(8, 4))
# Create CalSSB object without x as input
CalSSBobj(y = b$y, w = 10*b$w, resids = b$resids, wave = CrossStrata(z[, c("year", "q")]),
id = z$id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.