aic: Akaike's Information Criterion

Description Usage Arguments Value Author(s) See Also Examples

View source: R/aic.R

Description

The AIC value of the whole model in the selection of independent variables

Usage

1
aic(x, y, ...)

Arguments

x

independent variable, which can be a data frame or a matrix.

y

dependent variable, which can be a data frame or a matrix.

...

see regsubsets

Value

aic

the result AIC and p returned is numeric

p

numeric

Author(s)

Jinquan Lin

See Also

regsubsets, leaps,nobs

Examples

1
2
3
4
5
6
##----

data(table51)
x=table51[1:3]
y=table51[4]						
aic(x=x,y=y,nbest=3,method= "exhaustive")

jinimp/zhbit7 documentation built on May 19, 2019, 10:36 a.m.