View source: R/sample_data_funcs.R
rescale_cop | R Documentation |
Rescale quantiles to conditional copula
rescale_cop(U, X, beta, family = 1, par2)
rescaleCop(U, X, beta, family = 1, par2)
U |
matrix of quantiles |
X |
model matrix of covariates |
beta |
list of parameters (see details) |
family |
variety of copula to use |
par2 |
additional parameter for some copulas |
The variable to be transformed must be in the final column of
U
, with variables being conditioned upon in the earlier columns.
family
can be 1 for Gaussian, 2 for t, 3 for Clayton, 4 for
Gumbel, 5 for Frank, 6 for Joe and 11 for FGM copulas. Gamma distributed,
beta distributed or discrete respectively. pars
should be a list
with entries beta
and phi
, as well as possibly par2
if
family=2
.
U
should have the same length as X
has rows, and X
should have the same number of columns as the length of pars$beta
.
vector of rescaled quantiles
rescaleCop()
: Old name, now deprecated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.