linear_regression: Bayesian linear regression with Stan

Description Usage Arguments Value

View source: R/models.R

Description

Bayesian linear regression with Stan

Usage

1
linear_regression(y, x = NULL, num_pred = 10, vb = FALSE, ...)

Arguments

y

Numberic vector of output values.

x

Numeric vector of input values.

num_pred

number of time points to forecast

...

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

Value

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


nikosbosse/epipredictr documentation built on April 7, 2020, 9:51 p.m.