maxLR: implements the maximum likelihood ratio test
Description
The maximum likelihood ratio test is a classical goodness-of-fit
test for linear models. Mathematically speaking, the average
residual sum of squares for an ordinary least squares (OLS) is
approximated as a chi-square distribution to generate a \(p\)-value.
Usage
maxLR(X, Y)
Arguments
X
covariate matrix
Y
response vector
Value
\(p\)-value of the test
Details
The test is valid when the number of samples is larger than the number
of covariates.