Learn R Programming

bpnreg (version 2.0.3)

fit.bpnr: Model fit for a Bayesian circular regression model

Description

Outputs several model fit statistics for the Bayesian circular regression model

Usage

# S3 method for bpnr
fit(object)

Value

a matrix containing the computed log pointwise predictive density (lppd), Deviance Information Criterion (DIC), an alternative version of the DIC (DIC_alt), and the Watanabe-Akaike Information Criterion computed in two different ways (WAIC1, WAIC2). The matrix also contains the number of parameters or 'effective number' of parameters that the several statistics are based on. Computation of the criteria is done according to Gelman et.al (2014) in *Bayesian Data Analysis*.

Arguments

object

a bpnr object obtained from the function bpnr().

Examples

Run this code
library(bpnreg)
fit.Motor <- bpnr(pred.I = Phaserad ~ 1 + Cond, data = Motor,
its = 100, burn = 10, n.lag = 3)
fit(fit.Motor)

Run the code above in your browser using DataLab