Description Usage Arguments Details Value Note Examples
A S3 class to store discrete factor copula distributions.
1 2 3 4 5  | 
prob | 
 the marginal probabilities, a vector of numbers in (0,1).  | 
family | 
 the copula family, a string containing the family name (see Details for all possible families).  | 
parameters | 
 a vector or matrix of copula paramters.  | 
x | 
 a binary vector of the same length as prob  | 
ngrid | 
 number of nodes and weights for the Gaussian quadrature  | 
n | 
 number of observations.  | 
The implemented families listed below. Partial matching is activated, i.e.,
"gauss" is equivalent to "gaussian".
indepIndependence copula.
gaussianGaussian copula.
tStudent t copula.
claytonClayton copula.
gumbelGumbel copula.
frankFrank copula.
joeJoe copula.
bb1BB1 copula.
bb6BB6 copula.
bb7BB7 copula.
bb8BB8 copula.
An object of class dfcop_dist.
The evaluation functions can optionally be used with a dfcop_dist object,
e.g., ddfcop(c(1, 0), dfcop_dist(c(0.5, 0.5),"indep")).
1 2 3 4 5 6 7 8 9 10 11 12 13 14  | # A 10-dimensional Gaussian factor copula
dfcop_dist(runif(10),"gaussian", 0.5)
str(dfcop_dist(runif(10), "gauss", 0.5))
# A 100-dimensional rotated Clayton factor copula
dfcop <- dfcop_dist(runif(100), "clayton", 3)
 
# evaluate the probability mass function
ddfcop(cbind(c(1,1,0,0), c(1,0,1,0)), c(0.5, 0.5), "indep")
ddfcop(rbinom(100, 1, 0.5), dfcop)
# simulate data
rdfcop(1e2, c(0.5, 0.5))
rdfcop(1e2, dfcop)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.