| singleTests {bigstep} | R Documentation |
Perform the likelihood ratio tests between two regression models: 1) with
only the intercept, 2) with the intercept and every single variable
from the matrix X.
singleTests(X, y, fitFun = fitLinear, fastST = FALSE, maxp = 1e+06, verbose = TRUE)
X |
a numeric matrix or an object of class big.matrix (see 'Details').
The rows of |
y |
a numeric vector of responses. The length of |
fitFun |
a function which fits the regression model and calculate
the logarithm of the likelihood function (loglike). You can use your own
function or one of these: |
fastST |
a logical. If |
maxp |
a numeric. If |
verbose |
a logical. Set |
A numeric vector with p-values of the likelihood ratio test
(or the Pearson correlation test if fastST=TRUE).
set.seed(1) n <- 100 M <- 10 X <- matrix(rnorm(M*n), ncol=M) y <- X[, 2] - X[, 3] + X[, 6] - X[, 10] + rnorm(n) singleTests(X, y)