copula: Calculate the copula of a matrix of variables

Description Usage Arguments Details Value Methods (by class) Author(s) See Also Examples

View source: R/copulas.R

Description

Returns the copula of several random variables.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
copula(x, na.last = NA, ...)

## Default S3 method:
copula(x, na.last = NA, ...)

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

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

Arguments

x

A matrix or data.frame containing numeric variables.

na.last

How to treat missing values. See rank for details.

...

further arguments

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.

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.

Methods (by class)

Author(s)

Harry Southworth

See Also

edf plot.copula ggplot.copula

Examples

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

texmex documentation built on Dec. 4, 2020, 5:08 p.m.