predict.bpnme: Predicted values for a Bayesian circular mixed-effects model

Description Usage Arguments Value Examples

View source: R/classfunctions.R

Description

Outputs predicted values for a Bayesian circular mixed-effects model for each iteration of the MCMC sampler.

Usage

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

Arguments

object

a bpnme object obtained from the function bpnme.

...

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.