Description Usage Arguments Details References
calc_qi()
calculates a quantity of interest from objects
of class "post."
1 | calc_qi(post, X_pred_list, prob = 0.9, qi_name = "pr", ci_type = "hpd")
|
post |
An object of class "post" created by one of the sim_post_*() functions. |
X_pred_list |
A named list, where the names correspond to variable names
and the values correspond to values at which to set the variables. Only one
element of the list should have more than one value. If |
prob |
A numeric scalar in the interval (0,1) giving the target probability content of the intervals. |
qi_name |
The name of the quantity of interest to calculate. Either
|
ci_type |
The type of confidence interval to compute. Either
|
Researchers can use this function to convert posterior simulations of the logistic regression coefficients to quantities of interest, such as predicted probabilities, risk-ratios, and first-differences.
Rainey, Carlisle. "Dealing with Separation in Logistic Regression Model." Working paper. Available at http://crain.co/papers/separation.pdf.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.