Mixed Models, Hierarchical Linear Models, and Multilevel Models: A simple explanation

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

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

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

    Do you want to take a class with me? Visit simplistics.net to register for a class. You can either do "live" classes, where you'll learn from me directly via zoom. Or you can register for "self-guided" courses, complete with a schedule, discussion boards, quizzes, readings, etc.

  • @deejayserious6981
    @deejayserious6981 3 ปีที่แล้ว +82

    It takes a special kind of person to be so energetic for a subject like this, thanks for the explanation and unconventional format!

  • @alifarahani4398
    @alifarahani4398 ปีที่แล้ว +8

    This video single handedly made my life sooooo much easier. Such a great explanation and so to the point. Loved it!

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

    At first, it was difficult to match your energy to concentrate on the topic. Yet, my perseverance to keep watching paid off. A really great explanation. Thank you so much.

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

      It helps to watch my videos while stoned.

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

    I can't believe I've never found your channel until now. Great explanations!

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

    9:43 This is what I have been trying to understand for a long time. Thank you.

  • @dezequielp2
    @dezequielp2 3 ปีที่แล้ว +4

    FINALLY I understood this. Thanks a lot. Keep up the good work. Greetings from Brazil!

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

    it's the first time to really enjoy and understand statistical modelling like that! thanks a lot!

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

      Glad you liked it!

  • @matrixtoogood5601
    @matrixtoogood5601 3 ปีที่แล้ว +13

    Amazing explanation! Probably one of the simplest explanations of mixed models on TH-cam. Please consider lowering the volume of the edited video to 85% or 90% as it does tend to get very loud at times

  • @tilakbhusal2577
    @tilakbhusal2577 7 หลายเดือนก่อน +1

    My thesis is based on HLM and you just saved my life.

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

    Best explanation ever on TH-cam! And what a fun style of teaching 😎

  • @anne-katherine1169
    @anne-katherine1169 ปีที่แล้ว

    Asking people to leave comments with their guesses is not pedagogical, it is just asking people to leave comments so that the video might get more views in the future or something. xd It's like asking people to like and subscribe. Thank you for these explanations btw, your videos are very fun to watch.

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

      Exactly!

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

    This is amazing. I wish my MLM class had been this clear. Thanks for the refresher.

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

    Amazing explanation! I was tired of searching for a good video on this topic, glad I found this video.

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

    This is such a fun and clear explanation!

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

    Best explanation on youtube so far

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

    Dear Quant Psych: At around 12:30, you describe the "group" (schools) should be treated as a random intercept effect. Can you explain why we should not treat it as a fixed effect? Why not have two categorical variables, "Sex" (with two levels) and "Group" (with three levels), for a total of six combinations, to model your data?

  • @TechnoCrinoline
    @TechnoCrinoline 3 ปีที่แล้ว +8

    Thank you! I love this explanation style. It's hilarious and really sticks.

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

    OMG, Thanks so much for this video! Please consider the advice concerning your mic, think of all of your foreigner followers (like me) 🙏love your videos

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

    Great video. Thanks so much! It helps that you go over examples too.

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

    brilliant way to explain these grad level topics. Thank you

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

    Thank you for making these lecture videos freely available without commercials. Do you have any videos on dyad analysis?

  • @chiawenkuo
    @chiawenkuo 4 ปีที่แล้ว +26

    Will you please introduce generalized estimating equations (GEE)? When to use GEE vs. Mixed Model?
    _/|\_Thank you

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

    Awesome video! Very entertaining as well

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

    Nice fun explanation of the concept. Thanks

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

    You are totally amazing!!!!and fun to listen to

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

    This was awesome - and quite entertaining.

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

    Doing the lords work, thanks!
    - Ph.D. Student

  • @glaswasser
    @glaswasser 3 ปีที่แล้ว +6

    anyway, your explanation is actually pretty good. After covering my ears I kind of understood why I should use mixed models in my analysis.

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

    Hi Quant Psych! Do you have any tutorials for estimating sample size for multi-level models?

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

    Your video is super amazing. Take your production to the next level by using close microphone source like a lav mic clipped on. It will reduce the reverberation and increase intelligibility.

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

    Hey! Thanks so much for these videos! Where might I find this 3 hospitals data set you used?

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

    Best explanation, great job

  • @fahadfardan
    @fahadfardan 3 ปีที่แล้ว +4

    Question: Why using dummy variables to represent each condition is not sufficient? For example, what if I use a binary variable for each doctor which captures the difference, if any, between doctors and their effect on the patient they have.

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

      Generally opting for the dummy variable approach will lead to many more parameters being added to your model (at least, when there are many groups), rather than just the group error term(s)...this is just one parameter extra for a random intercept model, for instance. It also may prevent you from modelling explanatory variables relating to the group effect, and fixed effect approaches (i.e., dummy variable approach) can't generalise beyond the groups that make up the sample.

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

    Thank you so much! This video was really helpful!

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

    when you say cluster, I am assuming that you mean a variable, Ie every column. so a cluster would be the doctor column and the patient number column?

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

    For example, could be that the growth of different bacterial isolates using different growing media may have a fixed intercept since they all start at 0 growth?

  • @Daniel-ve8oi
    @Daniel-ve8oi 10 หลายเดือนก่อน

    I wonder if there's a difference between mixed models and the ANCOVA. I thought the ANCOVA does exactly the same: testing whether 1) there's a significant relationship between two numerical variables, and 2) whether the intercepts of these relationships differs significantly for different factors?!

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

    Great Explanation, Thanks

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

    Nice video and nice explanation. I would like have seen some exemples with paired data.

  • @anne-katherine1169
    @anne-katherine1169 9 หลายเดือนก่อน

    Hi there! I'm stuck on calculating needed sample size for mixed models I'm planning - is it me or is it a mess? I was hoping I'd find papers with like, explanations, tutorials, whatever - anything I can read, understand and try out. But instead I only find very theoretical papers? If you have any advice or references or so, they'd be suuper welcome.

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

      It really sucks to calculate sample sizes for mixed models. As I recall there was a textbook written by Diggle. Maybe try googling "Diggle longitudinal power caluation." Last time I had to do it, I used the longpower package in R.

    • @anne-katherine1169
      @anne-katherine1169 9 หลายเดือนก่อน

      @@QuantPsych hey, thank you! I saw that most people do simulations, which takes ages (I thought my computer is ok, but for this it is not powerful enough I guess), but then I found an app/ website by Oscar Olvera Astivia. For future reference 😊

    • @anne-katherine1169
      @anne-katherine1169 9 หลายเดือนก่อน

      @@QuantPsych and I will look up the book anyway! Thanks again 🙌

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

    Awesome video! Thank you!

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

    Great, great explanation

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

    How is a random-effects model different to a fixed-effects model with interactions (between the covariate and category)?

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

    Great video, thank you!

  • @samuelroytburd1260
    @samuelroytburd1260 8 หลายเดือนก่อน +1

    Appreciate it, thanks!

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

    Clear and fun! Thanks a lot!

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

    Thank you for your help.

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

    LOVE YOUR VIDEOS!!!

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

    If you don't have that many observations in your dataset, wouldn't you come across with some issues if you divide your data into groups? I can imagine that the worst case scenario would be ending up with only two observations per group.

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

    Hi Quant Psych, really appreciate this video. Would it be possible to get your hospital example data?

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

      quantpsych.net/data/hospital.csv

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

      @@QuantPsych Thank you very much for the data!

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

    your video is soooo good!

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

    Hi there. Thanks a lot for this Video. Do you happen to know a proper way how to visualize a MLM when having 3 predictors (all with different slopes/ intercepts) into one Output? I searched almost the whole internet for this and it seems you got something like this in your video. Thanks a lot in advance for your reply

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

    It's a very good explanation but I can only imagine you can keep on subdividing your subgroups or random effects until a clear mixed effect comes out. Are these random effects also evaluated using R^2?

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

      Yes, with some added complications. I have a video about computing R squared for HLMs

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

    Damn you are good! Thank you a thousand times!!!

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

    Can I ask, if I follow-up a cohort longitudinally, is there any assumption about the time points participants have been assessed? For instance, can I only use assessment in time 1 and time 2 to predict an outcome variable in time 3?

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

      You'd use Time as a predictor (1, 2, or 3) to predict the outcome.

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

    Hi,
    Anytime i add the level 2 variables, I get a lower ICC. What is the problem or how do I interpret that?

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

    A point that I would appreciate if anyone could help me understand; my understanding is that the data points within a cluster are independent with respect to other data points within the same cluster and that is why we can fit a regression model (that has independence assumption) within a single cluster. However, the data points within a cluster are not independent with respect to data points in other clusters and that is why we cannot fit a single regression model (that has the independence assumption) across clusters. Can someone please tell me if my understanding is correct? Thanks!

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

      You're wrong - daa within a cluster is always dependent, e. g. a group of patients which visit the very same doctor.

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

    Do you have a video on Multinomial mixed effects model as I have a response with 4 levels? Thank you

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

      This is the closest I have: th-cam.com/video/Yqf91pPzkU4/w-d-xo.html

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

    So helpfull !! thanks so much :)

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

    really good, can use more slides to emphasize points of discussion

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

    At 11:10, I guess it should be "normally you don't want to fix an intercept..."
    At 15:26: "it could be a fixed intercept model..."

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

      Yes, you're right :)

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

    Do you have a video explaining what i.i.d. means?

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

    1:04..or maybe we measure people who share the same gender. Why can’t I see a clear reason that “gender” is not a common candidate for nesting variable (ie people usually just control for it), but classroom always is?

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

      With gender we generally exhaust the categories we're interested (e.g., male, female, nonbinary). With classrooms we do not because we can't possibly sample all classrooms out there.

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

    AWESOME VIDEO TYSM!!!

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

    Hi, is this what is used for Panel regressions with time series data? Thanks!

  • @m.cd.3975
    @m.cd.3975 ปีที่แล้ว

    Are you related to the Mathantics videos guy?

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

    yo this video bumps

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

      also, what is your ggplot theme its so cute

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

    He throws many new concepts and said dont worry? Is that a good explanation?

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

      Seriously! This guy's an idiot!

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

    love iiiit!

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

    Great video. I want to ask about how linear mixed models handle missing data? Can it handle missing data on the predictor/covariate level or the response level? Or both? Or only the response level?

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

      There's some nuance to the answer. If an entire wave of measurements is missing, that's no big deal for mixed models. (It's considered MAR or missing at random). If some are missing from a wave, but not others, it will not handle it without some additional missing data strategy (e.g., multiple imputation).

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

    Why do you ask him to stop screaming ? It wakes me up when I'm at work

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

    👍👍👍👍

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

    Sir,...can you make a small video with dataset example on how REML works to find variance components ..for. eg. y= a+b+e a and b being random effect.

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

    Hello, does anyone here knows how to analyze such model in python when you want to predict a binary variable?

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

    Watching this video, I felt miss a boring class. In my opinion, your classes are good, however, the exaggerations in the jokes are bad. I suggest decreasing it and your classes will be better!

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

    Why does he shout the whole time? 😮

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

      because he is passionate 🥹

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

    stop screaming at me bro

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

    Calm down!

  • @Zirea.eya69
    @Zirea.eya69 3 ปีที่แล้ว

    Stop screaming

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

      My channel, my rules.

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

    why are u screaming at the camera? so annoying. have some self respect and make a proper video.

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

      … Turn your sound down if you don’t like it. These videos are great!

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

    My god - the presentation style is so distracting. Do we really need all the overacting and overplaying? It hurts my brain to try and pain attention to this. Please consider that different learners have different needs - this style is off putting to learners like me.

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

      Then I say to learners like you...don't watch my videos. Find someone who fits your learning style. (That's far easier than for me to change my teaching style).