View source: R/PostQuants_function.R
Calculates the posterior mean and standard deviation of a coefficient.
1 | PostQuants(predictor, resid, prior_mean, prior_sd, resid_var)
|
predictor |
Vector including the values of the predictor for which the posterior quantities are calculated. |
resid |
The residuals of the outcome on covariates excluding intercept. |
prior_mean |
The prior mean for the intercept. |
prior_sd |
The prior standard deviation of the intercept. |
resid_var |
The variance of the residuals. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.