Description Usage Arguments Value Author(s) Examples
Computes the posterior probabilities that Bayesian residuals exceed a cutoff value for a linear regression model with a noninformative prior
| 1 | bayesresiduals(lmfit,post,k)
 | 
| lmfit | output of the regression function lm | 
| post | list with components beta, matrix of simulated draws of regression parameter, and sigma, vector of simulated draws of sampling standard deviation | 
| k | cut-off value that defines an outlier | 
vector of posterior outlying probabilities
Jim Albert
| 1 2 3 4 5 6 7 8 | 
           1            2            3            4            5            6 
8.650461e-03 1.890880e-01 1.734943e-02 9.350177e-06 3.873963e-11 3.108944e-08 
           7            8            9           10           11           12 
1.527867e-02 2.049203e-12 2.495306e-01 1.725156e-02 8.974623e-03 3.655172e-11 
          13           14           15 
1.560055e-05 1.102365e-06 5.687012e-02 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.