powered by
Draw samples from the posterior predictive distribution.
posterior_predict(object, iter = 1000, progress = TRUE)
A 3D array containing the predicted datasets
An object of class estimate or explore
estimate
explore
Numeric. Number of samples from the predictive distribution
Logical. Should a progress bar be included (defaults to TRUE)
TRUE
# \donttest{ Y <- gss fit <- estimate(as.matrix(Y), impute = TRUE, iter = 150, type = "mixed") yrep <- posterior_predict(fit, iter = 100) # }
Run the code above in your browser using DataLab