mvM.PP: Mixture von Mises P-P plot

Description Usage Arguments Value Examples

View source: R/Clustering.R

Description

Produces a P-P plot of the data against a specified mixture of von Mises distribution, to graphically assess the goodness of fit of the model.

Usage

1
mvM.PP(data, mu1, kappa1, mu2, kappa2, prop)

Arguments

data

Vector of angles (in radians) to be fitted against the von Mises distribution.

mu1

Mean direction parameter for first von Mises component

kappa1

Concentration parameter for first von Mises component Must be between 0 and 1.

mu2

Mean direction parameter for second von Mises component

kappa2

Concentration parameter for second von Mises component Must be between 0 and 1.

prop

Proportion of distribution assigned to first von Mises component. Must be between 0 and 1.

Value

Vector of residuals.

Examples

1
2
3
r.mvm <- rmixedvonmises(200, circular(pi), circular(0), kap, 0, prop)
m.pp.res <- mvM.PP(r.mvm, circular(pi),  kap, circular(0),0, prop)
mean(m.pp.res); sd(m.pp.res)

ClairBee/AS.circular documentation built on Jan. 24, 2020, 3:57 p.m.