Learn R Programming

cylcop (version 0.2.0)

cyl_vonmises: Construction of 'cyl_vonmises' Objects

Description

Constructs a circular-linear von Mises copula according to Johnson1978;textualcylcop of class 'cyl_vonmises'.

Usage

cyl_vonmises(mu = 0, kappa = 1, flip = FALSE)

Value

An R object of class 'cyl_vonmises'.

Arguments

mu

numeric value giving the mean of the von Mises function used to construct the copula.

kappa

numeric value giving the concentration of the von Mises function used to construct the copula.

flip

logical value indicating whether the copula should be rotated 90 degrees to capture negative correlation.

References

Johnson1978cylcop

Hodelapplcylcop

Hodelmethodcylcop

Examples

Run this code
cop <- cyl_vonmises(mu=pi, kappa=10, flip = TRUE)
if(interactive()){
 plot_cop_surf(copula = cop, type = "pdf", plot_type = "ggplot", resolution = 20)
}

cop <- cyl_vonmises(mu=0, kappa=8, flip = FALSE)
if(interactive()){
 plot_cop_surf(copula = cop, type = "pdf", plot_type = "ggplot", resolution = 20)
}

Run the code above in your browser using DataLab