coef_ran.bpnme {bpnreg}R Documentation

Obtain random effect variances of a Bayesian circular mixed-effects model

Description

Gives posterior summaries of the circular or linear random effect variances. The circular random intercept variance and circular random slope variance of categorical predictors is computed as 1 - mean resultant length.

Usage

## S3 method for class 'bpnme'
coef_ran(object, type = "linear")

Arguments

object

a bpnme object obtained from the function bpnme.

type

one of c("linear", "circular") to get either the linear or circular random effect variances.

Value

A matrix with posterior summaries of the random effect variances.

Examples

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)
coef_ran(fit.Maps)
coef_ran(fit.Maps, type = "circular")


[Package bpnreg version 2.0.3 Index]