| p.grid {GRIDCOPULA} | R Documentation | 
Evaluates the distribution function of a grid type copula
Description
Returns the corresponding distribution function values.
Usage
p.grid(U, V = NULL, gc)
Arguments
U | 
 a matrix of size   | 
V | 
 optional, a vector of size   | 
gc | 
 a grid type copula object.  | 
Value
Returns a vector with the corresponding distribution.
Examples
# Generating simulated data with a transformation to the copula domain
n <- 500
x <- rgamma(n,4,1/2)
e <- rnorm(n,0,.3)
y <- sin(x+e)
Fx <- ecdf(x)
Fy <- ecdf(y)
u <- Fx(x)
v <- Fy(y)
df <- cbind(u,v)
copula.grid <- estimate.gridCopula(U = df, k = 5, m = 4 , method = "ml")
p.grid(df,gc=copula.grid)
# Using the Iris dataset, transformation is not mandatory
copula.grid <- estimate.gridCopula(X = iris[,1:2], k = 3, m = 7 , method = "ml")
p.grid(copula.grid$U,gc=copula.grid)
[Package GRIDCOPULA version 1.0.1 Index]