View source: R/initial_estimators.R
iis_init | R Documentation |
Impulse Indicator Saturation (IIS initial estimator)
iis_init( data, formula, gamma, t.pval = gamma, do.pet = FALSE, normality.JarqueB = NULL, turbo = FALSE, overid = NULL, weak = NULL )
data |
A dataframe. |
formula |
A formula in the format |
gamma |
A numeric value between 0 and 1 representing the significance level used for two-sided significance t-test on the impulse indicators. Corresponds to the probability of falsely classifying an observation as an outlier. |
t.pval |
A numeric value between 0 and 1 representing the significance level for the Parsimonious Encompassing Test (PET). |
do.pet |
logical. If |
normality.JarqueB |
|
turbo |
logical. If |
overid |
|
weak |
|
iis_init
returns a list with five elements. The first
four are vectors whose length equals the number of observations in the data
set. Unlike the residuals stored in a model object (usually accessible via
model$residuals
), it does not ignore observations where any of y, x
or z are missing. It instead sets their values to NA
.
The first element is a double vector containing the residuals for each
observation based on the model estimates. The second element contains the
standardised residuals, the third one a logical vector with TRUE
if
the observation is judged as not outlying, FALSE
if it is an outlier,
and NA
if any of y, x, or z are missing. The fourth element of the
list is an integer vector with three values: 0 if the observations is judged
to be an outlier, 1 if not, and -1 if missing. The fifth and last element
stores the ivreg
model object based on which the four
vectors were calculated.
IIS runs multiple models, similar to saturated_init
but with
multiple block search. These intermediate models are not recorded. For
simplicity, the element $model
of the returned list stores the full
sample model result, identical to robustified_init
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.