Description Usage Arguments Value Note Author(s) References Examples
Recebe objeto lm ou glm e calcula o VIF (Variance Infraction Factor) das vari<c3><a1>veis envolvidas no modelo.
1 | vif(obj, digits = 5)
|
obj |
Objeto lm ou glm |
digits |
N<c3><ba>mero de casas decimais da sa<c3><ad>da |
Vetor com o valor do VIF das vari<c3><a1>veis envolvidas
Se houver algum error ou n<c3><a3>o for poss<c3><ad>vel calcular VIF, o n<c3><ba>mero 9999 retornar<c3><a1>
GIOLO, S. R. LOPES, J. E.
Fox, J. and Monette, G. (1992) Generalized collinearity diagnostics. JASA, 87, 178-183.
Fox, J. (2008) Applied Regression Analysis and Generalized Linear Models, Second Edition. Sage.
Fox, J. and Weisberg, S. (2011) An R Companion to Applied Regression, Second Edition, Sage.
1 2 3 4 5 6 7 8 9 10 | data(mensal)
glmdata <- my_glm_data(mensal, 1, 12, "neg","hdw")
damod <- glmdata$ds_modelagem
vresposta <- glmdata$respostas[5]
explicativas <- glmdata$explicativas[1:3]
mreg <- paste(vresposta, " ~ 1")
fun <- as.formula(paste(c(mreg, explicativas), collapse=" + "))
lmfit <- lm(fun, data = damod)
#lmfit <- model.select(lmfit, sig = 0.05, verbose = TRUE)
vif(lmfit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.