View source: R/argumentChecks.R
check_weightfun_pars | R Documentation |
weightfun_pars
check_weightfun_pars
checks that the argument weightfun_pars
.
is correctly set, if not, tries to correct them.
check_weightfun_pars(
data,
p,
M,
d,
weight_function = c("relative_dens", "logistic", "mlogit", "exponential", "threshold",
"exogenous"),
weightfun_pars = NULL,
cond_dist = c("Gaussian", "Student", "ind_Student", "ind_skewed_t")
)
data |
a matrix or class |
p |
a positive integer specifying the autoregressive order |
M |
a positive integer specifying the number of regimes |
weight_function |
What type of transition weights
See the vignette for more details about the weight functions. |
weightfun_pars |
|
cond_dist |
specifies the conditional distribution of the model as |
Does checks the argument weightfun_pars
and throws an error if something is wrong; returns
a corrected version of the argument if possible.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.