Description Usage Arguments Value Author(s) References Examples

View source: R/Bayesian_Linear_Regression.R

Bayesian Linear Regression with Zellner's prior.

1 |

`formula` |
A string fromula. |

`data` |
A data frame with your data including response. |

`m1` |
A number of hyperparameter of the intercept. |

`g` |
A string of hyperparameter of the Zellner's prior. "typeI" is 1/n, "typeII" is 1/k^2 and "typeIII" is 1/max(n,k^2). |

`a` |
A number of hyperparameter for the gamma distribution. |

`b` |
A number of hyperparameter for the gamma distribution. |

A list with the estimated coefficients and standard deviations of the model from the Classical and Bayesian approach

Camilo Gonzalez <cigonzalez2@uc.cl>

L. Fahrmeir, T. Kneib, S. Lang, and B. Marx, Regression: Models, Methods and Applications. Springer-Verlag GmbH, 2013.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.