How to do a mediation analysis in R...with visuals!

  Рет қаралды 16,249

Quant Psych

Quant Psych

Күн бұрын

Link to the added variable plot video:
• Controlling/Conditioni...
Learning Objectives:
Conditioning versus mediation
Three (two?) step process of mediation
How to do traditional mediation analysis in R
How flexplot visualizes mediation
How to visualize with flexplot
This video relies on flexplot, which can be downloaded from R using the following commands:
install.packages("devtools")
devtools::install_github('dustinfife/flexplot', ref="development")
And here's a paper I wrote about my eight step approach to data analysis: psyarxiv.com/r...
Undergraduate curriculum playlist (GLM-based approach): www.youtube.co....
Graduate curriculum playlist (also GLM-based approach): www.youtube.co....
Exonerating EDA paper: psyarxiv.com/5...
Download JASP (and visual modeling module): www.jasp-stat.org

Пікірлер: 38
@nickvarney8148
@nickvarney8148 2 жыл бұрын
This video is incredible. You described this better in 11 minutes than my professor did in two hours. Thank you!
@allenshaw9996
@allenshaw9996 Жыл бұрын
The music (and your energy) makes it so much better! 🤣
@ericomarcon
@ericomarcon Жыл бұрын
This video is pure gold. I would just recommend some assumptions' checking at the beginning of the analysis. Otherwise, 10/10
@DrAnaWeidenauer
@DrAnaWeidenauer Жыл бұрын
you are not only a good teacher, you are hilarious
@mikhaeldito
@mikhaeldito 3 жыл бұрын
Bootstrap video, please! And then proceed to parametric and semi-parametric bootstrapping for mixed-effects models :D
@stephendye2924
@stephendye2924 3 жыл бұрын
Agreed, that would be useful
@capricious8929
@capricious8929 5 ай бұрын
EXTREMELY HELPFUL! THANK YOU!
@HarmonicaTool
@HarmonicaTool 2 жыл бұрын
What about covariates / control variables? are they just added in both models? Do we need to normalize predictors? U love how fast and on the point this lesson is but a hint to limitations / precautions would improve even more. That being said: Thanks so much!
@KN-tx7sd
@KN-tx7sd Жыл бұрын
as usual excellent, Bootstrap video, please! Also are the variables are all continuous or is any of them categorical. Can mediation be done when few variables are categorical in nature.
@janja7471
@janja7471 2 жыл бұрын
Great vid! And yes, pls do Bootstrap!
@symeonmandrinos9528
@symeonmandrinos9528 7 ай бұрын
Thank you for your effort
@jesusgarza-noriega1394
@jesusgarza-noriega1394 Жыл бұрын
I fucking love this guy
@kriegsmandot1
@kriegsmandot1 Жыл бұрын
Thanks so much, this is great! Why did you include exercise in the plot? Seems like that's a question unrelated to our variables of interest?
@nl7247
@nl7247 Жыл бұрын
Thank you very much ❤
@noemimicheli6803
@noemimicheli6803 2 жыл бұрын
What if the mediator is a categorical binary variable? Thank your for your videos!!
@capricious8929
@capricious8929 5 ай бұрын
What if I have two independent sample groups and two mediators, and 1 dependent variable I want to test out?
@IsobelFrench
@IsobelFrench 2 ай бұрын
Where can I get the dataset used in this video please? Thanks!
@erickcampos50
@erickcampos50 3 жыл бұрын
Great video! It's possible to do mediation using Jamovi and GLM? And yes, I would like to see a video about bootstrap
@QuantPsych
@QuantPsych 3 жыл бұрын
Not at the moment.
@davidwang8971
@davidwang8971 Жыл бұрын
Hi, thank you for this amazing video!! I have one question, is it possible to do medaition analysis with "multiple mediators" (assuming they are uncorrelated with each other) in this package "mediation"? Many thanks.
@caviper1
@caviper1 2 жыл бұрын
Gracias man.
@ito945
@ito945 2 жыл бұрын
Thank you very much for your videos. I would like to do the mediation analysis using multiple imputation for missing value using the "amelidiate" function in "mediation" package. If you know how to use this function , please give me the information.
@perevilaltahuguet5383
@perevilaltahuguet5383 9 ай бұрын
What do you think of the lavaan package?
@QuantPsych
@QuantPsych 6 ай бұрын
Love it.
@LaraFontana-dh5oh
@LaraFontana-dh5oh 5 ай бұрын
Using mediation function, the ACME is significant, but on the graph the two slopes are almost identical... why?
@QuantPsych
@QuantPsych 5 ай бұрын
Do you have a large sample size? What's the effect size? It might be significant, but the effect size is tiny. This is probably what's happening.
@SanazDabiri-f8n
@SanazDabiri-f8n 10 ай бұрын
Can you also visualize longitudinal mediation with flexplot?
@carolinaochoa3309
@carolinaochoa3309 2 жыл бұрын
Hi, thanks for the great work! I work with time to event data for the outcome. My exposure and mediatior as continuous variables. I used survreg function, which is suppoted by the mediation package. I'd like to represent my mediation model in a plot, like the mediate_plot you just showed. Do you have already a code for plotting mediation on this kind of outcome? Thanks!
@nadjaburgel9931
@nadjaburgel9931 Жыл бұрын
How do I do a mediation when my mediator is a latent variable consisting of four measured variables?
@nicujo
@nicujo 3 жыл бұрын
Hello from Denmark! Thank you very much for your videos, I found them VERY instructive. I am studying the univariate and multivariate playlists but I cannot install the flexplot package. Is it still available? Thanks for your effort :)
@QuantPsych
@QuantPsych 3 жыл бұрын
It is: devtools::install_github("dustinfife/flexplot")
@edafade
@edafade 2 жыл бұрын
Is it possible for flexplot to handle moderated mediation analysis with multiple predictor variables? I don't think it can visualize this, as we don't want to control for variables necessarily after the pipe.
@AmanzholBekmagambetov
@AmanzholBekmagambetov 3 жыл бұрын
On 5:30, Aren't we supposed to establish first the relationship between Depression and Quarantine as a base model and only after that test full model?
@QuantPsych
@QuantPsych 3 жыл бұрын
Yes, that is customary.
@caviper1
@caviper1 Жыл бұрын
Q: Can "mediate_plot" function be used with a binary response variable? If so, how?
@qizhengli7952
@qizhengli7952 2 жыл бұрын
what could I do when r reports the error "mediator model is not yet implemented", THANK YOU!!!
@rogerakanji5154
@rogerakanji5154 Жыл бұрын
Hi I am currently having a go at mediation path analysis model but I am stuck in the "error sem" My specify model is shown below: specmod
@jodi9434
@jodi9434 2 жыл бұрын
Are mediation models technically additive?
Probability, Part 1: Finite Sets
6:33
Quant Psych
Рет қаралды 1,3 М.
Mediation Analysis in R
41:01
David Caughlin
Рет қаралды 26 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Worst flight ever
00:55
Adam W
Рет қаралды 31 МЛН
Process model 7 (first-stage moderated mediation) using R Studio
33:17
Fitting mixed models in R (with lme4)
15:38
Quant Psych
Рет қаралды 27 М.
It's time for a statistics rant!!
16:39
Quant Psych
Рет қаралды 3,4 М.
The Basics of Flexplot in R
12:23
Quant Psych
Рет қаралды 6 М.
Path analysis in R using Lavaan (video 1; Sept, 2019)
26:09
Mike Crowson
Рет қаралды 43 М.
[2023] Simple Mediation in R / RStudio using "lavaan" [EASY]
10:32
Statistics & Research Design
Рет қаралды 3,1 М.
Testing normality is pointless. Do this instead
22:57
Quant Psych
Рет қаралды 8 М.