Bayesian Projected Normal Regression Models for Circular Data
anyBars function from lme4 package
Sample subject specific random effects
Sample fixed effect coefficients
Bayes Factors for a Bayesian circular mixed-effects model
Bayes Factors for a Bayesian circular regression model
Bayes Factors
Fit a Bayesian circular mixed-effects model
Fit a Bayesian circular regression model
bpnreg: A package to analyze Bayesian projected normal circular regres...
Check whether a variable is categorical
Compute circular coefficients from linear coefficients
Compute circular coefficients
Obtain the circular coefficients of a Bayesian circular mixed-effects ...
Obtain the circular coefficients of a Bayesian circular regression mod...
Circular coefficients
Obtain the linear coefficients of a Bayesian circular mixed-effects mo...
Obtain the linear coefficients of a Bayesian circular regression model
Linear coefficients
Obtain random effect variances of a Bayesian circular mixed-effects mo...
Random effect variances
Compute utmu
Compute Model Fit Measures Regression Model
Compute Eigenvalues
Compute Eigenvectors
expandDoubleVerts function from lme4 package
findbars function from lme4 package
Model fit for a Bayesian circular mixed-effects model
Model fit for a Bayesian circular regression model
Model fit
Estimate the mode by finding the highest posterior density interval
Estimate the mode by finding the highest posterior density interval
Find the highest density interval.
Find the highest density interval of a circular variable
Compute the 95 percent HPD of a vector of linear data
Compute the 95 percent HPD of a vector of circular data
isAnyArgBar function from lme4 package
isBars function from lme4 package
Compute the Likelihood of the PN distribution (mixed effects)
Compute the Likelihood of the PN distribution (regression)
Compute the mean of a vector of circular data
Create model matrices for a circular mixed-effects regression model
Create model matrices circular regression
Compute the mode of a vector of linear data
Compute the mode of a vector of circular data
Sample from a multivariate normal distribution
nobars function from lme4 package
nobars_ function from lme4 package
Sample precision matrix
A Gibbs sampler for a projected normal mixed-effects model
A Gibbs sampler for a projected normal regression model
Print output from a Bayesian circular mixed-effects model
Print output from a Bayesian circular regression model
reOnly function from lme4 package
Compute a mean resultant length
Compute the mean resultant length of a vector of circular data
RHSForm function from lme4 package
RHSForm function from lme4 package
reOnly function from lme4 package
Compute the standard deviation of a vector of circular data
A slice sampler for the latent lengths r
subbars function from lme4 package
Compute summary and model fit statistics for the circular mixed-effect...
Compute summary and model fit statistics for the circular regression m...
Compute a mean direction
Traceplots for a Bayesian circular mixed-effects model
Traceplots for a Bayesian circular regression model
Traceplots
Fitting Bayesian multiple and mixed-effect regression models for circular data based on the projected normal distribution. Both continuous and categorical predictors can be included. Sampling from the posterior is performed via an MCMC algorithm. Posterior descriptives of all parameters, model fit statistics and Bayes factors for hypothesis tests for inequality constrained hypotheses are provided. See Cremers, Mulder & Klugkist (2018) <doi:10.1111/bmsp.12108> and Nuñez-Antonio & Guttiérez-Peña (2014) <doi:10.1016/j.csda.2012.07.025>.