View source: R/many_regression_models.R
BIC of many simple univariate regressions | R Documentation |
BIC of many simple univariate regressions.
bic.regs(y, x, family = "normal")
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. |
Many simple univariate regressions are fitted and the BIC of every model is computed.
A vector with the BIC of each regression model.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
logistic_only, poisson_only
y <- rbinom(100, 1, 0.6)
x <- matrix( rnorm(100 * 50), ncol = 50 )
bic.regs(y, x, "binomial")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.