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

  Рет қаралды 30,889

Quant Psych

Quant Psych

Күн бұрын

Пікірлер: 47
@tatjanajak
@tatjanajak 3 жыл бұрын
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 5 ай бұрын
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 4 ай бұрын
Yeah.
@QuantPsych
@QuantPsych 4 ай бұрын
Good catch! Thanks!
@r4ts311
@r4ts311 3 ай бұрын
Thank you, that part was driving me crazy thinking I didnt understand anything
@Hanna-Nyasa
@Hanna-Nyasa Жыл бұрын
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 3 ай бұрын
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 Жыл бұрын
insightful, straight to the point, and full of personality. your passion shines through your videos :) keep up the amazing work!
@natsumi883
@natsumi883 3 жыл бұрын
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 жыл бұрын
Oops! Yes, you're right. I should have set, "...you cannot fit it as a *random* effect."
@hc433
@hc433 2 жыл бұрын
@@QuantPsych you should have set “should have said” right? 😉
@donpennino
@donpennino 2 жыл бұрын
Would that be considered a Type1 or Type 2 error of just a Typ0
@donpennino
@donpennino 2 жыл бұрын
Does seem like error is a real cluster
@chiawenkuo
@chiawenkuo Жыл бұрын
@@QuantPsychThank you for the verification. I thought so..."no variation, no random effect"
@clifton_albrecht
@clifton_albrecht Жыл бұрын
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 Жыл бұрын
As well didn't get those sentence
@QuantPsych
@QuantPsych 10 ай бұрын
Oops! The first sentence was correct. I meant to say you can ONLY fit it as a fixed effect.
@ajoymukhopadhyay8018
@ajoymukhopadhyay8018 7 күн бұрын
😅😅😅 7:48 😅 7:49 😅😅😅😅 7:53 😅😅 8:03 8:43 😊 8:58 8:58 8:58 😊 9:02 9:11
@stellar8689
@stellar8689 2 жыл бұрын
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!
@alessandrachuquipiondo5217
@alessandrachuquipiondo5217 Жыл бұрын
this is gold, thank you SO MUCH. My thesis is alive bcs of you.
@sergiochavezlazo5362
@sergiochavezlazo5362 2 жыл бұрын
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!
@FuJimin-f9y
@FuJimin-f9y Ай бұрын
it says that the package "flexplot" is not avaliable for my version of R, how to fix this then?
@OriginalJoseyWales
@OriginalJoseyWales Ай бұрын
Is model.comparison from lme4 package?
@OriginalJoseyWales
@OriginalJoseyWales Ай бұрын
Love your videos and your sense of humour - made me laugh. Can you make a video on how to fit cross classified multilevel models in R? Or can anyone direct me to one?
@taranaferdous2858
@taranaferdous2858 6 ай бұрын
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 6 ай бұрын
Glad you enjoyed it!
@TheBjjninja
@TheBjjninja 2 жыл бұрын
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 10 ай бұрын
So you have double nesting!
@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?
@QuantPsych
@QuantPsych 2 жыл бұрын
correct.
@andreaesquivelroman8313
@andreaesquivelroman8313 11 ай бұрын
This is the best video about statistics I ever seen jajajaja very funny
@jingywangy
@jingywangy Жыл бұрын
what would you recommend doing when we have more than one random effect variables?
@QuantPsych
@QuantPsych 10 ай бұрын
You can use multiple random effects.
@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.
@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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
The first (it has to be coded in). So, this model would not work: y~a + (a +b | ID)
@stephendye2924
@stephendye2924 3 жыл бұрын
Brilliant. Thanks so much
@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 ?
@rickpack6700
@rickpack6700 2 жыл бұрын
Love the Stevie Wonder at the minute mark
@hamidnikbakht1295
@hamidnikbakht1295 3 жыл бұрын
Easy peasy, lemon squeezy, don't let statistics make you feel queasy! (You're welcome!)
Transformations in Statistics: What are they?
13:47
Quant Psych
Рет қаралды 9 М.
Fitting mixed models in R (with lme4)
15:38
Quant Psych
Рет қаралды 30 М.
Using lme4 in R for Mixed Models
15:06
Quant Psych
Рет қаралды 4,7 М.
Fixed and random effects with Tom Reader
8:09
University of Nottingham
Рет қаралды 203 М.
Panel Data (Fixed Effects, Random Effects) - R for Economists Moderate 9
13:06
Econometrics, Causality, and Coding with Dr. HK
Рет қаралды 47 М.
Random Effects Estimator - an introduction
8:10
Ben Lambert
Рет қаралды 113 М.
Fixed Effects and Random Effects
5:12
Prof. Essa
Рет қаралды 790
Panel Data and Fixed Effects in R
13:05
SebastianWaiEcon
Рет қаралды 72 М.
Fixed Effects and Random Effects Models
5:00
Terry Shaneyfelt
Рет қаралды 136 М.
What statistics teachers get wrong!
28:48
Quant Psych
Рет қаралды 14 М.
Random Effects vs Fixed Effects estimators
5:25
Ben Lambert
Рет қаралды 108 М.