Linear modeling in R using categorical variables - parallel slopes models

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ต.ค. 2024
  • Need to include a categorical variable in your linear model in R? Start here.
    If this vid helps you, please help me a tiny bit by mashing that 'like' button. For more #rstats joy, crush that 'subscribe' button!

ความคิดเห็น • 10

  • @EquitableEquations
    @EquitableEquations  ปีที่แล้ว +1

    You can find materials for this vid (and others) at github.com/equitable-equations/youtube.

  • @jayskieeee
    @jayskieeee 2 ปีที่แล้ว +2

    Thank you so much for the crystal clear explanation kind sir

  • @marcosdanieldasilva5127
    @marcosdanieldasilva5127 ปีที่แล้ว

    Great video. I from Brazil and I have a question: I read in a book about some tests comparing regression models with qualitative variables through parallelism tests, regression equivalence tests, and identity tests. What I want to know is if it's possible to unite groups, for example group A == B, A != C, by creating a model y ~ 1 + x + dummy, where dummy is (AB and C).

  • @romanvasiura6705
    @romanvasiura6705 ปีที่แล้ว

    Thank you!

  • @Dilysia21
    @Dilysia21 2 ปีที่แล้ว +1

    Hi, your videos have been helpful. Can you please share your notes or where can I find them?

    • @EquitableEquations
      @EquitableEquations  ปีที่แล้ว +1

      Hi! I've been working on this backlog - thanks for your patience. You can now find these materials on my GitHub: github.com/equitable-equations/youtube.

  • @andreasschmidt186
    @andreasschmidt186 2 ปีที่แล้ว +2

    Hello, what can i do when i have 3 categorical independent variables with 2, 3 and 4 levels?

    • @EquitableEquations
      @EquitableEquations  2 ปีที่แล้ว +1

      Hi! The most direct thing to do is to encode each level of each category with a 1 or 0. So you’d have 9 binary explanatory variables in your example. This is sometimes called “one hot encoding.”

    • @EquitableEquations
      @EquitableEquations  2 ปีที่แล้ว +1

      I’m planning a vid on this some time in 2022. Stay tuned!