Description Usage Arguments Value See Also
View source: R/functions_impute.R
Function to impute missing estimates in an iterative fashion. The first prediction (Iteration 0) is the result of the smart guessing procedure. All subsequent iterations rely on XGBoost to produce preliminary predictions. These predictions are then adjusted to adhere to boundary conditions on the data (all estimates must be in the range [0,1], and the sum of all estimates within an occupational group must be <=1).
1 2 3 4 5 6 7 8 9 | iterateModel(
ors.data.sims,
n.iter,
weight.step,
mdl.d = 14,
mdl.n = 200,
mdl.e = 0.6,
sg.soc.code
)
|
ors.data.sims |
Original data augmented with relevant predictors, i.e.
all records, including both known and missing estimates, as well as simulated
data (output of |
n.iter |
Number of times to iterate/adjust the model |
weight.step |
Increment by which to increase modeling weight of missing data with each iteration |
mdl.d |
Tree model maximum depth; default is 14 |
mdl.n |
Tree model rounds; default is 200 |
mdl.e |
Tree model eta; default is 0.6 |
sg.soc.code |
SOC code to use for smart guessing, either "upSOC2", "upSOC3", or "upSOC4" |
A list containing the results of iterative modeling, for each simulation
doParallel::registerDoParallel()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.