0

How do I test for equality of two regression coefficients within the same model? I have the following code:

illegalscandal <- lm(PoliticalApproval ~ Ideology + Education + Age + Sex + FL_10_DO,
                    data = Qualtricsillegal)

FL_10_DO is a variable for two different types of political communication (denial, confession). Id like to test if there is equality between T4 (confession) and T3 (denial). Thanks a lot.

Ian Campbell
  • 23,484
  • 14
  • 36
  • 57
Alex
  • 9
  • 1
  • 2
    Hi Alex, welcome to Stack Overflow. This website focuses on *specific* **programing** questions. It seems your question centers more on interpretation of statistical analysis. Therefore, your question may be more appropriate for [CrossValidated](https://stats.stackexchange.com). – Ian Campbell Jun 01 '20 at 21:11
  • 1
    Look at the linearHypothesis function. https://stackoverflow.com/questions/37591550/testing-the-equality-of-multiple-coefficients-in-r – Peter Jun 01 '20 at 21:13
  • And please use reproduceable examples, including data. – Peter Jun 01 '20 at 21:14

0 Answers0