Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

update_regressors

Single MCMC update of Bayesian linear regression


Description

Samples the coefficients of a linear regression. The prior distribution is multivariate normal and it is specified in prior_spec.

Usage

update_regressors(dependent_variable, independent_variables, beta, prior_spec)

Arguments

dependent_variable

the left hand side

independent_variables

the matrix of the independent variables. Has to be of same height as the length of the dependent variable

beta

the vector of the latent states used in MDA. Updated in place

prior_spec

prior specification object. See type_definitions.h

See Also

Other stochvol_cpp: update_fast_sv(), update_general_sv(), update_t_error()


stochvol

Efficient Bayesian Inference for Stochastic Volatility (SV) Models

v3.0.4
GPL (>= 2)
Authors
Darjus Hosszejni [aut, cre] (<https://orcid.org/0000-0002-3803-691X>), Gregor Kastner [aut] (<https://orcid.org/0000-0002-8237-8271>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.