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

lps

Compute Log-predictive Scores


Description

Computes and prints log-predictive score of an object of class bgvar.predict.

Usage

## S3 method for class 'bgvar.pred'
lps(object, ...)

Arguments

object

an object of class bgvar.predict.

...

additional arguments.

Value

Returns an object of class bgvar.lps, which is a matrix of dimension h times K, whereas h is the forecasting horizon and K is the number of variables in the system.

Author(s)

Maximilian Boeck, Martin Feldkircher

Examples

library(BGVAR)
data(eerDatasmall)
model.ssvs.eer<-bgvar(Data=eerDatasmall,W=W.trade0012.small,draws=100,burnin=100,
                      plag=1,prior="SSVS",eigen=TRUE,hold.out=8)
fcast <- predict(model.ssvs.eer,n.ahead=8,save.store=TRUE)
lps <- lps(fcast)

BGVAR

Bayesian Global Vector Autoregressions

v2.2.0
GPL-3
Authors
Maximilian Boeck [aut, cre] (<https://orcid.org/0000-0001-6024-8305>), Martin Feldkircher [aut] (<https://orcid.org/0000-0002-5511-9215>), Florian Huber [aut] (<https://orcid.org/0000-0002-2896-7921>)
Initial release

We don't support your browser anymore

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