Displaying 1 result from an estimated 1 matches for "linearyhypothesi".
Did you mean:
linearyhypothesis
2025 Jan 19
2
Test For Difference of Betas By Group in car
Hello R-Helpers,
I was looking into how to test whether the beta coefficient from a regression would be the same for two different groups contained in the dataset for the regression.
When I put that question into google, AI returned a very nice looking answer (and a couple of variations on it).
library(car)
data <- data.frame(income = c(30, 45, 50, 25, 60, 55),
education =