Questions tagged [variance-inflation-factor]

4 questions
1
vote
1 answer

How to manually calculate Variance Inflation Factor (VIF)?

I would like to manually calculate the Variance Inflation Factor (VIF) for mtcars dataset. When I do it using the function from package I have the following result: install.packages('car') library(car) fit <- lm(mtcars[,1] ~ .,…
Lara
  • 129
  • 7
1
vote
1 answer

R: Error in vif.default(m) : model contains fewer than 2 terms

When I fit a polynomial regression model in R, if I use the function poly() and then try to get the variance inflation factors using vif() I get the following error: y = c(0.22200,0.39500,0.42200,0.43700,0.42800,0.46700,0.44400,0.37800,0.49400, …
s5s
  • 11,159
  • 21
  • 74
  • 121
0
votes
0 answers

Is there a way to derive GVIF in Jamovi?

Apparently the car package vif function and performance package check_collinearity function both calculate generalized variance inflation factor (GVIF) automatically if a categorical variable is entered into a regression. As an example, this can be…
0
votes
1 answer

VIF function returning error message

I'm trying to perform a VIF on a multivariate regression model, but when I ran the vif function in r I get an error. Code and error below: vif(analys3.lm) Error in if (names(coefficients(mod)[1]) == "(Intercept)") { : argument is of length…
Barbara
  • 1,118
  • 2
  • 11
  • 34