HETER_MODEL$test | R Documentation |
This function test the null model.
In this class, the test is a BP-test computed using lmtest::bptest. The
variance formula is ~ x + I(x^2)
.
dat |
Data frame. A data frame containing all variables needed by the
|
null_formula |
Formula. Formula for fitting the null model. Default
is |
A list containing the test name, the test statistic and the p-value.
# Instantiate
x <- rand_uniform()
e <- rand_normal()
test <- heter_model(a = 0, b = 100)
dat <- test$gen(100000)
test$test(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.