subivar: Survival function values based the Archimedean copula

Description Usage Arguments Value Author(s) Examples

View source: R/dbivar.R

Description

Computes the survival function values based the Archimedean copula on the grid of x and y vectors.

Usage

1
subivar(x, y, par, afa, rodina, fam)

Arguments

x

numeric vector

y

numeric vector

par

vector of this values:
par[1], par[3] are shape for the Weibull and the Gamma distributions or mean for the Normal distribution or meanlog for the Lognormal ditribution.
par[2], par[4] are scale for the Weibull and the Gamma distributions or sd for the Normal distribution or sdlog for the Lognormal ditribution.

afa

copula parameter

rodina

vector of length 2 of names of the marginal distributions. Distributions can be "weibull", "gamma", "norm", "lnorm". "norm" is the name for the Normal distribution. "lnorm" is the name for the Lognormal distribution.

fam

name of copula. It can be "gumbel", "clayton", "frank".

Value

Returns an array of values of the survival function.

Author(s)

Josef Brejcha

Examples

1
2
3
4
5
6
x <- seq(0, 100, 5)
y <- seq(0, 100, 4)
Sxy <- subivar(x, y, c(1.5, 50, 1.3, 50), 5, c("weibull", "weibull"), "gumbel")
colnames(Sxy) <- x
rownames(Sxy) <- y
contour(y, x, Sxy, xlab="y", ylab="x")

BivarP documentation built on May 29, 2017, 7:13 p.m.