fit.bpnme: Model fit for a Bayesian circular mixed-effects model

Description Usage Arguments Value Examples

View source: R/classfunctions.R

Description

Outputs several model fit statistics for the Bayesian circular mixed-effects model

Usage

1
2
## S3 method for class 'bpnme'
fit(object)

Arguments

object

a bpnme object obtained from the function bpnme.

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 (WAIC, 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*.

Examples

1
2
3
4
5
library(bpnreg)
fit.Maps <- bpnme(pred.I = Error.rad ~ Maze + Trial.type + L.c + (1|Subject),
data = Maps,
its = 100, burn = 1, n.lag = 1)
fit(fit.Maps)

bpnreg documentation built on May 2, 2019, 6:37 a.m.