vif.FLTable: 'vif' performs VIF on FLTable and FLTableMD objects. The DB...

Description Usage Arguments Value Slots See Also Examples

Description

vif performs VIF on FLTable and FLTableMD objects. The DB Lytix function which can be called are c(FLVIF,FLVIFBW,FLVIFFB,FLVIFMultiDataSet,FLVIFBWMultiDataSet,FLVIFFBMultiDataSet). Performs variance inflation factor analysis on data to identify redundant variables in a dataset. The square root of the variance inflation factor tells you how much larger the standard error is, compared with what it would be if that variable were uncorrelated with the other predictor variables in the model.

Usage

1
2
3
## S3 method for class 'FLTable'
vif(formula, data, fetchID = TRUE, method = "normal",
  threshold = c(2, 10), ...)

Arguments

formula

A symbolic description of model variables for which vif is to be calculated.

data

An object of class FLTable or FLTableMD.

method

three methods are Available 'normal' for VIF , 'bw' for backward selections on independent variable and 'fw' for fast backward selections on independent variables

threshold

One variable is dropped at a time till all of the VIF values in the model are below the VIFThresholdNumber.

Value

vif returns an object of class FLVIF

Slots

results

cache list of results computed

table

Input data object

See Also

vif for R reference implementation.

Examples

1
2
3
4
5
6
7
8
9
fltbl <- FLTable(table = "tbllinregr", obs_id_colname="OBSID", var_id_colnames="VARID", "NUM_VAL")
flmod <- vif.FLTable(data = fltbl)
flmod$vif
flmod <- vif.FLTable(data = fltbl, method = "fb")
flmod <- vif.FLTable(data = fltbl, method = "bw")
For Multi-Dataset:
fltbl <- FLTableMD(table = "tblLogRegrMulti",group_id_colname="DATASETID",obs_id_colname="ObsID",var_id_colname="VarID",cell_val_colname="Num_Val")
flmod <- vif(data= fltbl, method = "bw", threshold = 5)
flmod$vif

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.