Learn R Programming

texmex (version 2.4.9)

copula: Calculate the copula of a matrix of variables

Description

Returns the copula of several random variables.

Usage

copula(x, na.last = NA, ...)

# S3 method for default copula(x, na.last = NA, ...)

# S3 method for data.frame copula(x, na.last = NA, ...)

# S3 method for matrix copula(x, na.last = NA, ...)

Value

A matrix with the same dimensions as x, each column of which contains the quantiles of each column of x. This object is of class copula.

Arguments

x

A matrix or data.frame containing numeric variables.

na.last

How to treat missing values. See rank for details.

...

further arguments

Methods (by class)

  • copula(default): default method

  • copula(data.frame): data frame method

  • copula(matrix): matrix method

Author

Harry Southworth

Details

The result is obtained by applying edf to each column of x in turn.

Print and plot methods are available for the copula class.

See Also

edf plot.copula ggplot.copula

Examples

Run this code

  D <- liver[liver$dose == "D",]
  Dco <- copula(D)
  plot(Dco)

Run the code above in your browser using DataLab