Description Usage Arguments Value Examples
check_fn_args_comp_mms_var_boot_ind
is used to assess whether the arguments
are correctly specified in list
format and returns an error message if
they do not match the correct specification
1 | check_fn_args_comp_mms_var_boot_ind(inp_list, boot_type)
|
inp_list |
(list) : A list containing the relevant input parameters for
empirical bootstrap ( |
boot_type |
(character) : Can take one of the values
|
: A TRUE
if assertions pass, or an error if there is an
assertion failure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# Multiplier Bootstrap input list assertion checking
# valid since the named arguments are B, weights_type
testthat::expect_true(check_fn_args_comp_mms_var_boot_ind(
inp_list = list(B = 10, weights_type = "rademacher"),
boot_type = "boot_mul"
))
# valid since the named arguments are B, weights_type i.e. weights_type is NULL
testthat::expect_true(check_fn_args_comp_mms_var_boot_ind(
inp_list = list(B = 10, weights_type = NULL),
boot_type = "boot_mul"
))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.