bic.regs: BIC of many simple univariate regressions.

View source: R/many_regression_models.R

BIC of many simple univariate regressionsR 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

logistic_only, poisson_only

Examples

y <- rbinom(100, 1, 0.6)
x <- matrix( rnorm(100 * 50), ncol = 50 )
bic.regs(y, x, "binomial")

Rfast2 documentation built on Aug. 8, 2023, 1:11 a.m.