AT2 can be used to calculate the sample average treatment effect from a two-part model, with
corresponding interval obtained using posterior simulation.AT2(x1, x2, index1, index2, n.sim = 100, prob.lev = 0.05, hd.plot = FALSE, main = "Histogram and Kernel Density of Simulated Average Effects", xlab = "Simulated Average Effects", ...)SemiParBIVProbit object as produced by SemiParBIVProbit().SemiParBIVProbit object as produced by SemiParBIVProbit().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 average effects is produced. This can
only be produced when delta = FALSE.hd.plot = TRUE.SemiParBIVProbit(). AT measures the sample average effect from a two-part model when a binary response (associated with a continuous outcome) takes values 0 and 1. Posterior simulation is used to obtain a confidence/credible interval.
SemiParBIVProbit-package, SemiParBIVProbit, summary.SemiParBIVProbit
## see examples for SemiParBIVProbit
Run the code above in your browser using DataLab