Perform Davidian-Carroll test¶
Source: man/performDavidianCarrollTest.Rd · Help: ?performDavidianCarrollTest
Regresses log(residual^2) on fitted values using a polynomial.
Usage¶
Arguments¶
model- an object of class
lm. data- optional data frame the model was fitted to. When
NULL, the default, the model frame ofmodelis used. The statistic is computed from the residuals and fitted values ofmodel, sodatadoes not change the result; it is accepted so that every test takes(model, data, ...). degree- polynomial degree. Before 0.15.0
degreewas the second argument: a number passed there by position is still read asdegree, with a warning that shows the new call; that form stops working in 1.0.0.
Value¶
An object of class htest.
Details¶
A polynomial in the fitted values is fitted to \(\log(e^2)\). Joint significance of the polynomial terms is evaluated with an \(F\) statistic.
References¶
Davidian, M., & Carroll, R. J. (1987). Variance function estimation. Journal of the American Statistical Association, 82(400), 1079–1091.