sim_variable | R Documentation |
Each entry formulas
, family
, pars
, link
is a list
with two entries, the first referring to the variable being simulated and the
second to the pair-copulas being used.
If the quantile is smaller than tol
or bigger than 1 - tol
the
associated value is moved to tol
and 1 - tol
respectively.
sim_variable(
n,
formulas,
family,
pars,
link,
dat,
quantiles,
tol = 10 * .Machine$double.eps
)
n |
sample size |
formulas |
list consisting of a formula for the output variables and a list of formulae for the pair-copula |
family |
list containing family variable |
pars |
list with two entries, first a list of parameters for response, and second a further list of parameters for pair-copula |
link |
list of same form as |
dat |
data frame of current variables |
quantiles |
data frame of quantiles |
tol |
tolerance for quantile closeness to 0 or 1 |
The data frame dat
with an additional column given by the left-hand side of formula[[1]]
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.