traceplot.bpnme: Traceplots for a Bayesian circular mixed-effects model

Description Usage Arguments Examples

View source: R/classfunctions.R

Description

General plot function for a bpnme object.

Usage

1
2
## S3 method for class 'bpnme'
traceplot(object, parameter = "SAM", variable = NULL)

Arguments

object

a bpnme object obtained from the function bpnme

parameter

one of c(beta1", "beta2", "b1", "b2", a.x", "a.c", "b.c", "SAM", "AS", "SSDO", "circ.diff", "omega1", "omega2", "cRI", "cRS") to indicate for which parameter a traceplot is required. beta1 and beta2 are the fixed effects coefficients of a mixed-effects model. b1 and b2 are the random effects coefficients of a mixed-effects model. circ.diff are the circular differences with the intercept on the outcome variable for the different levels of categorical variables. omega1 and omega2 are the linear random effect variances and cRI and cRS are the variances of the circular random intercept and circular random slope.

variable

a character string with variable name(s) to indicate for which variable(s) a traceplot is required. This cannot be used in combination with the parameters c("omega1", "omega2", "cRI", "cRS").

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)
traceplot(fit.Maps)

bpnreg documentation built on Aug. 6, 2021, 9:07 a.m.