glmnet
bigGlm.Rd
Fit a generalized linear model as in glmnet
but unpenalized. This
allows all the features of glmnet
such as sparse x, bounds on
coefficients, offsets, and so on.
bigGlm(x, ..., path = FALSE)
x | input matrix |
---|---|
... | Most other arguments to glmnet that make sense |
path | Since |
It returns an object of class "bigGlm" that inherits from class
"glmnet". That means it can be predicted from, coefficients extracted via
coef
. It has its own print method.
This is essentially the same as fitting a "glmnet" model with a single value
lambda=0
, but it avoids some edge cases. CAVEAT: If the user tries a
problem with N smaller than or close to p for some models, it is likely to
fail (and maybe not gracefully!) If so, use the path=TRUE
argument.
print
, predict
, and coef
methods.
#> #> Call: bigGlm(x = x, y = y) #> #> Df %Dev Lambda #> 1 20 0.2183 0#> #> Call: bigGlm(x = x, y = y > 0, family = "binomial") #> #> Df %Dev Lambda #> 1 20 0.1795 0#> #> Call: bigGlm(x = x, y = y > 0, family = "binomial", path = TRUE) #> #> Df %Dev Lambda #> 1 20 0.1795 0