RR can be used to calculate the sample average risk ratio of a binary or continuous endogenous predictor/treatment, with
corresponding interval obtained using posterior simulation.RR(x, nm.end, E = TRUE, treat = TRUE, type = "bivariate", ind = NULL,
delta = FALSE, n.sim = 100, prob.lev = 0.05, hd.plot = FALSE,
prob.plot = FALSE, main = "Histogram and Kernel Density of Simulated Risk Ratios",
xlab = "Simulated Risk Ratios", ...)SemiParBIVProbit object as produced by SemiParBIVProbit().TRUE then RR calculates the sample RR. If FALSE then it calculates the sample RR
for the treated individuals only.TRUE then RR calculates the RR using the treated only. If FALSE then it calculates the ratio using
the control group. This only makes sense if E = FALSE."naive" (the effect is calculated ignoring the presence of observed and unobserved confounders), "univariate" (the effect is obtained from the univariate probit model which neglects the presenind
when some observations are excluded from the RR calculation (e.g., when using E = FALSEdelta = FALSE. It may be increased if more precision is required.TRUE then a plot of the histogram and kernel density estimate of the simulated risk ratios is produced. This can
only be produced when delta = FALSE.TRUE then a plot
showing probability that the binary outcome is equal to 1 for each value of the endogenous variable
and respective ihd.plot = TRUE.delta = FALSE then it returns a vector containing simulated values of the average RR. This
is used to calculate intervals.SemiParBIVProbit-package, SemiParBIVProbit, summary.SemiParBIVProbit## see examples for SemiParBIVProbitRun the code above in your browser using DataLab