lm_stan: Bayesian linear regression with Stan

Description Usage Arguments Value Examples

Description

Bayesian linear regression with Stan

Usage

1
lm_stan(x, y, ...)

Arguments

x

Numeric matrix of input values. This matrix should not contain a column of 1's.

y

Numeric vector of output values.

...

Arguments passed to 'rstan::sampling' (e.g. iter, chains).

Value

An object of class 'stanfit' returned by 'rstan::sampling'

Examples

1
2
3
4
5
6
## Not run: 
x <- runif(30, 0, 10)
y <- 1 + 2*x + rnorm(30)
lmFit <- lm_stan(x, y)

## End(Not run)

cbdavis33/rstanPullTest documentation built on June 4, 2019, 11:48 a.m.