prev can be used to calculate the overall estimated prevalence from a sample selection model, with corresponding interval
obtained using the delta method or posterior simulation.prev(x, sw = NULL, type = "bivariate", ind = NULL, delta = FALSE,
n.sim = 100, prob.lev = 0.05, hd.plot = FALSE,
main = "Histogram and Kernel Density of Simulated Prevalences",
xlab = "Simulated Prevalences", ...)SemiParBIVProbit object as produced by SemiParBIVProbit()."naive" (the prevalence is calculated ignoring the presence of observed
and unobserved confounders), "univariate" (the effect is obtained from the univariate probit/single imputaTRUE then the delta method is used for confidence interval calculations, otherwise Bayesian posterior
simulation is employed.delta = FALSE. It may be increased if more precision is required.TRUE then a plot of the histogram and kernel density estimate of the simulated prevalences is produced. This can only
be produced when delta = FALSE.hd.plot = TRUE.delta = FALSE then it returns a vector containing simulated values of the prevalence. This
is used to calculate an interval.prev estimates the overall prevalence of a disease (e.g., HIV) when there are missing values that are not at random.
An interval for the estimated prevalence can be obtained using the delta method or posterior simulation.SemiParBIVProbit-package, SemiParBIVProbit, summary.SemiParBIVProbit## see examples for SemiParBIVProbitRun the code above in your browser using DataLab