How to decide whether an effect is fixed or random in mixed models

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

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

  • @tatjanajak
    @tatjanajak 3 ปีที่แล้ว +31

    How can there be a lecture which makes you wonder, laugh and learn in the same time? But here it is. Awesome as always.

  • @eubutuoy
    @eubutuoy 3 หลายเดือนก่อน +11

    At 3:15 and 3:25 you contradict yourself. Fix it: "if a variable doesn't change within the cluster, then it cannot be fit as a random effect". Other than that, it was a very clear explanation.

    • @odeiasante
      @odeiasante 2 หลายเดือนก่อน

      Yeah.

    • @QuantPsych
      @QuantPsych  2 หลายเดือนก่อน +2

      Good catch! Thanks!

    • @r4ts311
      @r4ts311 หลายเดือนก่อน +2

      Thank you, that part was driving me crazy thinking I didnt understand anything

  • @Hanna-Nyasa
    @Hanna-Nyasa ปีที่แล้ว +6

    I WISH I COULD CLONE YOU AND GET YOU TO TEACH ME 24/7.
    Crazy how much a teacher can change your approach to a subject lol

  • @PradaChanelHouse
    @PradaChanelHouse หลายเดือนก่อน

    I am in a mixed models course, currently. We're half way through the semester, and I have been completely lost. Clicked on your videos, and understood the applied difference between fixed and random effects AND how to visually understand how each variable affects the given model. Thank you for your visuals and explanations!

  • @noa-ps1zu
    @noa-ps1zu ปีที่แล้ว +4

    insightful, straight to the point, and full of personality. your passion shines through your videos :) keep up the amazing work!

  • @natsumi883
    @natsumi883 3 ปีที่แล้ว +47

    at 3:25 i think you ment when there is no variation it cannot be set as a random effect? in the emphasis part you say fixed.
    thanks for your videos btw! they are helping me a lot! cheers from brazil

    • @QuantPsych
      @QuantPsych  3 ปีที่แล้ว +22

      Oops! Yes, you're right. I should have set, "...you cannot fit it as a *random* effect."

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

      @@QuantPsych you should have set “should have said” right? 😉

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

      Would that be considered a Type1 or Type 2 error of just a Typ0

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

      Does seem like error is a real cluster

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

      @@QuantPsychThank you for the verification. I thought so..."no variation, no random effect"

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

    this is gold, thank you SO MUCH. My thesis is alive bcs of you.

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

    God damn this channel was a gold nugget among all the stats videos I've been looking through to understand LMMs. It doesn't particularly interest me so your enthusiasm and humours definitely keep my attention, not to mention that explanations are great. Thank you!

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

    You seem to give two contradictory statements - at about 3:10 you say that mean SES cannot be fit as a random effect, then immediately reiterate that it cannot be fit as a fixed effect. Am I misunderstanding, or is one of those two sentences in error?

    • @olenapo4895
      @olenapo4895 11 หลายเดือนก่อน

      As well didn't get those sentence

    • @QuantPsych
      @QuantPsych  8 หลายเดือนก่อน

      Oops! The first sentence was correct. I meant to say you can ONLY fit it as a fixed effect.

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

    Amazing video.!!! This channel deserves much more views and subscriptors

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

    Subscribed within the first 10 seconds of the video 🤣 Thanks for making stats lighthearted! It should be fun!

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

    Love the Stevie Wonder at the minute mark

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

    Dr. Fife, can you recommend a good book for mixed effect modeling? Thanks

  • @SofíaDelgadoMontufar
    @SofíaDelgadoMontufar ปีที่แล้ว

    Hello so in the cluster i have diferrent schools in my case is different localities and repeated meassures inside them since i have replicates per individual in this case since my locality changes how can i deal with this data

    • @QuantPsych
      @QuantPsych  8 หลายเดือนก่อน

      So you have double nesting!

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

    Brilliant. Thanks so much

  • @taranaferdous2858
    @taranaferdous2858 4 หลายเดือนก่อน

    OMG!!! I am watching it over and over, especially the part where you moved your face video! HaHaHa. Hilarious. =))
    Thank you so much for making this so easy to understand!!! And fun! :))

    • @QuantPsych
      @QuantPsych  4 หลายเดือนก่อน

      Glad you enjoyed it!

  • @andreaesquivelroman8313
    @andreaesquivelroman8313 9 หลายเดือนก่อน

    This is the best video about statistics I ever seen jajajaja very funny

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

    Easy peasy, lemon squeezy, don't let statistics make you feel queasy! (You're welcome!)

  • @jpss9360
    @jpss9360 2 ปีที่แล้ว

    Hello, I want to know that when you have the exact same values or don't vary like in MEANSES you cannot fit as fixed and random effect?

  • @maxduvall9055
    @maxduvall9055 2 ปีที่แล้ว

    I am not sure if ill get a response to this (in time if at all) but I am finishing up my senior thesis right now and about a few days ago I found out that I messed up by trying to treat my repeated measures data (in long form) as normal data in simple linear regression. One of my hypotheses is that two variables (one a binary, and the other continuous) interact. So I expect the slopes to be different between the two groups (from the binary variable). however, I want to make sure I understand this correctly. Because I am testing for that effect I should NOT include the binary variable as a random effect because then I would NOT be able to test for the interaction right? Because the data is in long form, each participant has two measures, and therefor the only random effect I should include is the participants ID and its effect on the intercept right? If I include the random slope of the binary variable, the model accounts for it but it does not give me an estimate nor any information on significance. If anyone knows what I am talking about and can help please let me know! It would be greatly appreciated. Also let me know if you need more information.
    ALSO ALSO I have been trying to use the estimates function in flex plot and I keep getting the following code "Error in str2lang(x) : :1:10: unexpected ')' 1: RDM~1+(1|)" Its very confusing because no matter how hard I look and how many times I check I cannot find an extra parenthesis... I have tried adding and deleting different parantheses in various spots and nothing works... so let me know if you can answer that too.

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

    Hello ! I have been binge-watching all of your videos, as you're the only one who somehow managed to make me understand something to mixed models (so first, thank you for this !) However, when I use model.comparison, the function doesn't display any p.value nor does it show r_squared_change. Do you know why is that ? Did you remove these from the lastest versions of the package ?

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

    what would you recommend doing when we have more than one random effect variables?

    • @QuantPsych
      @QuantPsych  8 หลายเดือนก่อน

      You can use multiple random effects.

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

    Loved the intro & great explanation! However, my dependent variable is often binary, say 5 year mortality. Is it easy to adapt the slope and model comparisons to logistic regression?

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

    As for the AIC comparison, you are misinterpreting it. When you compare AIC, you should look at the value of deltaAIC or even Akaike's weight. The difference of 1 is too small to matter, which means your models don't differ much, so we should apply the parsimony principle and choose a simpler model. (Model Selection and Multi-Model Inference: A Practical Information-Theoretic Approach by Kenneth P. Burnham, David R. Anderson, page 71.) Isn't that what Bayes factor and p-value also pointed to?

  • @jorgemmmmteixeira
    @jorgemmmmteixeira 3 ปีที่แล้ว

    When to use both as random and fixed ? Tks

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

      All random effects ALSO have fixed effects. The question isn’t "random or fixed?"...it’s " random/fixed or just fixed?'

    • @jorgemmmmteixeira
      @jorgemmmmteixeira 3 ปีที่แล้ว

      @@DustinFife do you mean that everytime up code a random effect, you also code it as a fixed ? Or behind every coded random effect, has a fixed effect implicit (but not coded )? Tks

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

      The first (it has to be coded in). So, this model would not work: y~a + (a +b | ID)