Skip to content

bayes

Fit a Bayesian linear regression model using Bayesian Ridge estimation.

When to use

How do I perform Bayesian linear regression and obtain posterior estimates for my coefficients?

Syntax

bayes linear y x1 x2 [, n_iter(<int>) tol(<num>) noconstant]

Examples

bayes linear wage educ exper
bayes linear wage educ exper, n_iter(500) tol(1e-4)
bayes linear wage educ exper, noconstant

See also