View source: R/sample_data_funcs.R
sim_copula | R Documentation |
Simulate copula values
sim_copula(dat, family, par, par2, model_matrix)
sim_CopVal(dat, family, par, par2, model_matrix)
dat |
data frame with empty columns |
family |
numeric indicator of copula type |
par |
mandatory parameters |
par2 |
optional parameters |
model_matrix |
design matrix for covariates |
Returns data frame containing columns y
and z1, ..., zk
.
The family variables are numeric and taken from VineCopula
.
Use, for example, 1 for Gaussian, 2 for t, 3 for Clayton, 4 for Gumbel,
5 for Frank, 6 for Joe and 11 for FGM copulas.
A data frame of the same dimension as dat
containing the
simulated values.
sim_CopVal()
: Old name, now deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.