BIC of many simple univariate regressions {Rfast2} | R Documentation |
BIC of many simple univariate regressions.
Description
BIC of many simple univariate regressions.
Usage
bic.regs(y, x, family = "normal")
Arguments
y |
The dependent variable, a numerical vector. |
x |
A matrix with the indendent variables. |
family |
The family of the regression models. "normal", "binomial", "poisson", "multinomial", "normlog" (Gaussian regression with log link), "spmpl" (SPML regression) or "weibull" for Weibull regression. |
Details
Many simple univariate regressions are fitted and the BIC of every model is computed.
Value
A vector with the BIC of each regression model.
Author(s)
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
See Also
Examples
y <- rbinom(100, 1, 0.6)
x <- matrix( rnorm(100 * 50), ncol = 50 )
bic.regs(y, x, "binomial")
[Package Rfast2 version 0.1.5.2 Index]