I wanted to ask about anova F-test. Can this test be used to measure coefficients contribution on dependent variable?
Anova test compares variations between and within a certain groups and in linear regression we use it to test wheater all regression coefficiets (apart from intercept) are equal to zero.
My question is if we can compare sum square of residuals for each term used in regression as follows:
library(tidyverse)
mtcars %>%
lm(hp ~ factor(gear) + factor(am) + qsec + wt, data = .) %>%
aov() %>%
broom::tidy() %>%
mutate(contribution = sumsq/sum(sumsq))
Can we intepret this summary output as: gear explains about 44 percents of variability in dependent variable? That qsec explains about 25% of variablitity? Can this approach be used in practice as e.g. If we have to choose ONLY one variable for explaining dependent variable we should choose gear in this example with only this variables?
I would like to ask if this is correct or not and most importantly why