
Last chance! 50% off unlimited learning
Sale ends in
harvtest
performs the Harvey-Collier-Test for linearity.harvtest(formula, data=list())
"htest"
containing the following components:lm
x <- c(1:30);
y <- x^2 + rnorm(30,0,2);
formular <- y ~ x;
harv <- harvtest(formular);
qt(0.95, harv$parameter[1]);
Run the code above in your browser using DataLab