predict.bpnr: Predicted values for a Bayesian circular regression model

Description Usage Arguments Value Examples

View source: R/classfunctions.R

Description

Outputs predicted values for a Bayesian circular regression model for each iteration of the MCMC sampler.

Usage

1
2
## S3 method for class 'bpnr'
predict(object, ...)

Arguments

object

a bpnr object obtained from the function bpnr.

...

further arguments passed to or from other methods.

Value

a matrix (rows = N, columns = iterations) containing predicted values for the circular outcome for each iteration of the MCMC sampler.

Examples

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

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