| Title: | A Fast Regression Algorithm for Large Data Using VIF Regression |
|---|---|
| Description: | Implements a fast regression algorithm for building linear model for large data as defined in the paper "VIF-Regression: A Fast Regression Algorithm for Large Data (2011), Journal of the American Statistical Association, Vol. 106, No. 493: 232-247" by Dongyu Lin, Dean P. Foster, and Lyle H. Ungar. Compatibility updates by Renova. |
| Authors: | Dongyu Lin [aut, cre] |
| Maintainer: | Dongyu Lin <[email protected]> |
| License: | GPL (>= 2) |
| Version: | 1.0.9001 |
| Built: | 2026-11-15 20:39:02 UTC |
| Source: | https://github.com/renova-r/VIF |
This data set is developed based on the original Boston Housing Data. We use MEDV as the repsonse y. In the matrix of variables x, we include all the other 13 variables, their second and third orders, their two-way and three-way interactions.
data(housingexp)data(housingexp)
http://stat.wharton.upenn.edu/~buja/STAT-541/boston.dat
This data set contains a data set that can be used to test the VIF-regression.
data(syn)data(syn)
A list contains:
ya numeric vector giving the response, 1000 x 1
xa numeric matrix of variables, containing 200 variables, 1000 x 200
truea vector of true variables that generate y
vif selects variables for a linear model. It returns a subset of variables for building a linear model.
vif(y, x, w0 = 0.05, dw = 0.05, subsize = 200, trace = TRUE, mode = c("dense", "sparse"))vif(y, x, w0 = 0.05, dw = 0.05, subsize = 200, trace = TRUE, mode = c("dense", "sparse"))
y |
the response. |
x |
an optional data frame or matrix containing the variables in the model. |
w0 |
the initial wealth. |
dw |
the incremental wealth attained if a variable is included in the model. |
subsize |
the size of the subsample to approximate the variance inflation factor. |
trace |
logical. if |
mode |
|
A list containing:
select |
the chosen subset of variable. |
modelmatrix |
the model matrix that is ready for fitting a linear model. |
Dongyu Lin [email protected]
Dongyu Lin, Dean P. Foster, and Lyle H. Ungar. (2011). VIF-Regression: A Fast Regression Algorithm for Large Data. Journal of the American Statistical Association, Vol. 106, No. 493: 232–247. http://gosset.wharton.upenn.edu/~foster/research/vif_jasa_final.pdf
The data sets used in the paper can be downloaded via following links:
Boston Housing Data: http://gosset.wharton.upenn.edu/~foster/auction/boston.csv
Bankruptcy Data: http://gosset.wharton.upenn.edu/~foster/auction/bankruptcy.csv
Call Center Data: http://gosset.wharton.upenn.edu/~foster/auction/calldata.tar.gz
Many others: http://gosset.wharton.upenn.edu/~foster/auction/auction.html.
data(syn); vif.sel <- vif(syn$y, syn$x, trace = FALSE); vif.sel$select; syn$true; data(housingexp); colnames(housingexp$x); vif.sel <- vif(housingexp$y, housingexp$x, w0 = 0.0005, dw = 0.005, subsize = 300, trace = FALSE);data(syn); vif.sel <- vif(syn$y, syn$x, trace = FALSE); vif.sel$select; syn$true; data(housingexp); colnames(housingexp$x); vif.sel <- vif(housingexp$y, housingexp$x, w0 = 0.0005, dw = 0.005, subsize = 300, trace = FALSE);