Learn R Programming

copula (version 0.99-4)

setTheta: Specify the Parameter of an Archimedean Copula

Description

Set or change the parameter $\theta$ (theta) of an Archimedean copula x of class "acopula". This is used for constructing copula models with specified parameter, as, for example, in onacopula().

Usage

setTheta(x, value, na.ok = TRUE)

Arguments

x
acopula
value
parameter value, numeric or NA (when na.ok is true.)
na.ok
logical indicating if NA values are ok for theta.

Value

  • an "acopula" as x, just with the slot theta set to value.

Examples

Run this code
myC <- setTheta(copClayton, 0.5)
myC

Run the code above in your browser using DataLab