Description Usage Arguments Details Value Author(s) Examples
Convert SWIMw to SWIM
1 | convert_SWIMw_to_SWIM(object)
|
object |
A |
Convert a SWIMw object into a SWIM object
A SWIM
object containing:
x
, a data.frame containing the data;
new_weights
, a list of functions, that applied to
the k
th column of x
, generates the vectors of scenario
weights. Each component corresponds to a different stress;
type = "VaR"
;
specs
, a list, each component corresponds to
a different stress and contains k
,
alpha
and q
.
See SWIM
for details.
Kent Wu
1 2 3 4 5 6 7 8 9 10 | ## Not run:
set.seed(0)
x <- as.data.frame(cbind(
"normal" = rnorm(1000),
"gamma" = rgamma(1000, shape = 2)))
res1 <- stress_wass(type = "RM", x = x,
alpha = 0.9, q_ratio = 1.05)
convert_SWIMw_to_SWIM(res1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.