Description Usage Arguments Value Slots See Also Examples
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.
1 2 3 |
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. |
vif
returns an object of class FLVIF
results
cache list of results computed
table
Input data object
vif
for R reference implementation.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.