View source: R/estimationCKT.kernel.R
| se.estimated_CKT_kernel | R Documentation |
Methods for class 'estimated_CKT_kernel'
## S3 method for class 'estimated_CKT_kernel'
se(object, progressBar = TRUE, ...)
## S3 method for class 'estimated_CKT_kernel'
confint(object, parm = NULL, level = 0.95, progressBar = TRUE, ...)
## S3 method for class 'estimated_CKT_kernel'
plot(
x,
confint = NULL,
level = NULL,
xlim = NULL,
ylim = c(-1.2, 1.2),
progressBar = TRUE,
color_CKT = "black",
color_confint = "red",
...
)
object, x |
an |
progressBar |
|
... |
other arguments, currently passed to |
parm |
ignored for the moment, kept for compatibility with the generic
|
level |
the confidence level for the confidence intervals. By default,
95% confidence intervals are computed, i.e. |
confint |
in case of the |
xlim, ylim |
the x,y limits of the plot. |
color_CKT, color_confint |
the colors respectively for the CKT curve and for the confidence intervals. |
plot is only called for its side effect and does not return
anything.
se returns a vector of the same length as the number of points
in the input newZ that was given to the function CKT.kernel.
confint returns a matrix with 2 columns and the same number of rows as
the number of points in the input newZ that was given to the function
CKT.kernel.
CKT.kernel which generates objects of class
estimated_CKT_kernel.
# We simulate from a conditional copula
set.seed(1)
N = 100
# This is a small example for performance reasons.
# For a better example, use:
# N = 800
Z = rnorm(n = N, mean = 5, sd = 2)
conditionalTau = -0.9 + 1.8 * pnorm(Z, mean = 5, sd = 2)
simCopula = VineCopula::BiCopSim(N=N , family = 1,
par = VineCopula::BiCopTau2Par(1 , conditionalTau ))
X1 = qnorm(simCopula[,1])
X2 = qnorm(simCopula[,2])
newZ = seq(2, 10, by = 1)
estimatedCKT_kernel <- CKT.kernel(
X1 = X1, X2 = X2, Z = Z,
newZ = newZ, h = 0.2, kernel.name = "Epa", se = TRUE)
se(estimatedCKT_kernel)
confint(estimatedCKT_kernel, level = 0.9)
plot(estimatedCKT_kernel, confint = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.