Learn R Programming

RMRAINGEN (version 1.0)

omega_root: This is the target function whose zero is searched to crete the inverse function of omega.

Description

This is the target function whose zero is searched to crete the inverse function of omega.

Usage

omega_root(x = 0.5, p0_v1 = 0.5, p0_v2 = 0.5, p00 = p0_v1 * p0_v2, correlation = NA)

Arguments

x
value of expected correlation between the corresponding Gaussian-distributed variables
p0_v1,p0_v2
probablity of no precipitatin occurences for the v1 and v2 time series respectively.
p00
probability of no precipitation occurence in both v1 and v2 simultanously returned by omega
correlation
numerical value. DEfault is NA. Binary correlation retured by omega when the argumet correlation=TRUE

Value

the value p00-omega(x=x,p0_v1=p0_v1,p0_v2=p0_v2) or correlation-omega(x=x,p0_v1=p0_v1,p0_v2=p0_v2) (if correlation is not NA)

See Also

normalCopula,pcopula,omega,omega_inv

Examples

Run this code
rho <- 0.4
p00 <- omega(x=rho,p0_v1=0.5,p0_v2=0.5)
omega_root(x=rho,p0_v1=0.5,p0_v2=0.5,p00=p00)

Run the code above in your browser using DataLab