traceplot.bpnr {bpnreg}R Documentation

Traceplots for a Bayesian circular regression model

Description

General plot function for a bpnr object.

Usage

## 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("beta1", "beta2", "a.x", "a.c", "b.c", "SAM", "AS", "SSDO", "circ.diff") to indicate for which parameter a traceplot is required. beta1 and beta2 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

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


[Package bpnreg version 2.0.3 Index]