
Last chance! 50% off unlimited learning
Sale ends in
multipleEI returns
multipleEI(model.obj, n.burnin, m, int.btw.EI, show.iter=TRUE)
Rcpp_bei
model-object generated from createModel
.
number of burn in iterations.
number of multiple edit-imputed datasets.
interval (number of iterations) between EI datasets.
logical
specifying if the iteration number of burning-in is displayed.
array
of (
The total number of MCMC iterations is (n.burnin
+ m
* int.btw.EI
). Please see the example in the demo folder for more detailed explanation.
# NOT RUN {
data(SimpleEx)
data1 = readData(SimpleEx$D.obs, SimpleEx$Ratio.edit, NULL, SimpleEx$Balance.edit)
# model1 = createModel(data1, 15)
## get 3 edit-imputed data from MCMC by storing every 100 iterations after 50 burn-in
# result1 = multipleEI(model1, n.burnin=50, m=3, int.btw.EI=100)
# dim(result1)
## [1] 3 1000 4
## m=3 Edit-imputed datasets of n=1000 records with p=4 variables
# }
Run the code above in your browser using DataLab