traceplot.bpnr: Traceplots for a Bayesian circular regression model

Description Usage Arguments Examples

View source: R/classfunctions.R

Description

General plot function for a bpnr object.

Usage

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

Arguments

object

a bpnr object obtained from the function bpnr

parameter

one of c("B1", "B2", "a.x", "a.c", "b.c", "SAM", "AS", "SSDO", "circ.diff") to indicate for which parameter a traceplot is required. B1 and B2 are the linear intercepts and coefficients of the first and second component. circ.diff are the circular differences with the intercept on the outcome variable for the different levels of categorical variables.

variable

a character string with variable name(s) to indicate for which variable(s) a traceplot is required.

Examples

1
2
3
4
library(bpnreg)
fit.Motor <- bpnr(pred.I = Phaserad ~ 1 + Cond, data = Motor,
its = 100, burn = 10, n.lag = 3)
traceplot(fit.Motor, parameter = "B1")

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