numerical_conditional_cop {cylcop}R Documentation

Numerically Calculate the Conditional Copula

Description

Numerically Calculate the Conditional Copula

Usage

numerical_conditional_cop(u, copula, cond_on)

Arguments

u

matrix or vector of numeric values in I^2, containing as first column the circular (periodic) and as second the linear dimension.

copula

R object of class 'cyl_copula' or 'Copula' (package 'copula', only 2-dimensional).

cond_on

column number of u on which the copula is conditioned. E.g. if cond_on = 2, the function calculates for each element in the first column of u the copula conditional on the element in the second column.

Value

A vector containing the values of the distribution of the copula at u[,-cond_on] conditional on the values of u[,cond_on].

References

Hodel FH, Fieberg JR (2021). “Cylcop: An R Package for Circular-Linear Copulae with Angular Symmetry.” bioRxiv. doi:10.1101/2021.07.14.452253, https://www.biorxiv.org/content/10.1101/2021.07.14.452253v3/.

Hodel FH, Fieberg JR (2022). “Circular-Linear Copulae for Animal Movement Data.” Methods in Ecology and Evolution. doi:10.1111/2041-210X.13821.

See Also

ccylcop(), numerical_inv_conditional_cop().

Examples

cop <- cyl_quadsec(0.1)
u <- cbind(c(0.3, 0.1), c(0.7, 0.3))
numerical_conditional_cop(u = u, cop = cop, cond_on = 1)


[Package cylcop version 0.2.0 Index]