View source: R/outlier_tests.R
sumtest | R Documentation |
sumtest()
uses the estimations across several cut-offs to test whether
the sum of the deviations between sample and population FODR differ
significantly from its expected value.
\loadmathjax
\mjdeqn\sum_k = 1^K \sqrtn(\widehat\gamma_c_k - \gamma_c_k) sum k = (1 to K) sqrt(n) (gammahat_c_k - gamma_ck)
sumtest(robust2sls_object, alpha, iteration, one_sided = FALSE)
robust2sls_object |
A list of |
alpha |
A numeric value between 0 and 1 representing the significance level of the test. |
iteration |
An integer >= 0 or the character "convergence" that determines which iteration is used for the test. |
one_sided |
A logical value whether a two-sided test ( |
sumtest()
returns a data frame with one row storing the
iteration that was tested, the value of the test statistic (t-test), the
type of the test (one- or two-sided), the corresponding p-value, the
significance level, and whether the null hypothesis is rejected. The data
frame also contains an attribute named "gammas"
that records which
gammas determining the different cut-offs were used in the scaling sum test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.