set_cop_param | R Documentation |
cyl_copula
' ObjectsThese methods can be used, e.g. in other functions, to give users limited access to the parameters of a copula.
set_cop_param(copula, param_val, param_name, ...) ## S4 method for signature 'cyl_cubsec' set_cop_param(copula, param_val, param_name) ## S4 method for signature 'cyl_quadsec' set_cop_param(copula, param_val, param_name) ## S4 method for signature 'cyl_rect_combine' set_cop_param(copula, param_val, param_name) ## S4 method for signature 'cyl_rot_combine' set_cop_param(copula, param_val, param_name) ## S4 method for signature 'cyl_vonmises' set_cop_param(copula, param_val, param_name)
copula |
R object of class ' |
param_val |
numeric vector holding the values to which the
parameters given in |
param_name |
vector of character strings holding the names of the parameters to be changed. |
... |
additional arguments. |
Note that for a rectangular patchwork copula
('cyl_rect_combine
')
the attribute rectangles_symmetric
cannot be changed by set_cop_param()
,
since rectangular patchwork copulas with symmetric rectangles are treated as
distinct from rectangular patchwork copulas with potentially asymmetric rectangles.
Therefore, when changing one of the bounds of the lower rectangle of such a copula,
the corresponding bound of the upper rectangle is automatically changed as well
(see examples).
A 'cyl_copula
' object with the changed parameters.
cop <- cyl_rect_combine(copula::normalCopula(0.2),low_rect = c(0.1,0.4), up_rect="symmetric") cop cop <- set_cop_param(cop, param_val = c(0.1, 0.3), param_name = c("rho.1", "low_rect2")) cop <- cyl_rect_combine(copula::normalCopula(0.2),low_rect = c(0.1,0.4), up_rect=c(0.6,0.9)) cop cop <- set_cop_param(cop, param_val = 0.3, param_name = "low_rect2") cop
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.