Тёмный

Path analysis in R using Lavaan (video 1; Sept, 2019) 

Mike Crowson
Подписаться 39 тыс.
Просмотров 43 тыс.
50% 1

This video centers on how to carry out a path analysis in R using the using the 'lavaan' function associated with the Lavaan structural equation modeling package. The emphasis in the video is on how to correctly use R code in order to specify your model, run it, and obtain relevant outputs. I DO NOT spend time focusing on the interpretation itself. A copy of the .csv file referenced in the video can be downloaded here:
drive.google.com/file/d/1Ge0k...
A copy of the text file referenced in the video can be downloaded here:
drive.google.com/file/d/1FKNj...
A copy of the Powerpoint file with the models can be downloaded here:
drive.google.com/file/d/1Nvpz...
A second video on estimating and testing indirect and total effects can be found here: • Path analysis in R usi...
Additional videos and materials on SEM can be found at: sites.google.com/view/statist...

Опубликовано:

 

6 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@meenakshichakraborty2352
@meenakshichakraborty2352 3 года назад
Thank you so much for this extremely helpful video. You explained all the basics so clearly - really appreciate your time and effort! Saved me hours or days!
@AndresGonzalez-rw7oe
@AndresGonzalez-rw7oe 4 года назад
Hi Mike, thank you for sharing your knowledge. This video is very useful!
@arunkumardubey120
@arunkumardubey120 3 года назад
Dear Mike, Your effort is truly phenomenal. Thanks for sharing. Love from India. Best wishes
@paty_lnunes
@paty_lnunes 4 года назад
This video helped me a lot. Thank you!
@Bravemaster3
@Bravemaster3 Год назад
Thank you for the video. Really well done.
@user-uk9wh3xd6t
@user-uk9wh3xd6t Год назад
This is the greatest video! Thank you so much!
@kasunpathirana9410
@kasunpathirana9410 3 года назад
Very clear explanation. Thank you sir
@user-ux4me5pq9z
@user-ux4me5pq9z 3 года назад
Thank you! I love this!
@georgeellis9626
@georgeellis9626 4 года назад
Thank you for this example.
@mikecrowson2462
@mikecrowson2462 4 года назад
You're very welcome! Thanks for visiting!
@alex000cozar
@alex000cozar 4 года назад
Nice explanation
@brenna3126
@brenna3126 Год назад
Super helpful, thank you so much
@Ashenange1
@Ashenange1 4 года назад
Hi Mike, these videos are really helpful. I was wondering if you were planning on making a video that shows how to incorporate interaction terms or if you have one and I missed it?
@MrDevid1975
@MrDevid1975 21 день назад
Thank you for your video Dr. Mike. what will be the codes if there is only one IV and two mediators (serial) and one outcome variable?
@mateusragusequadros4530
@mateusragusequadros4530 3 года назад
Thanks so much for this video, helped me a lot. I have a question aboute se operationalization of the formula of model writing: in lavaan is possibol use two columns of my data (e.g. axis1 and axis2 of a PCoA, that both discribes my interest variable) as a single variable (let's say "descriptor 'x'")? In anothers softwares I know it is possible, but I cant find that possibility in lavaan. Thanks, in advance, for your atention!
@laurasantiago798
@laurasantiago798 Год назад
Thank you so much--life saver
@mikecrowson2462
@mikecrowson2462 Год назад
You are very welcome Laura!
@lizhenye1715
@lizhenye1715 2 года назад
Hi Mike, this is very helpful! Thank you very much! I got a question: I created a CLPM model by lavaan. Now I want to compare the strength of the lagged effects (i.e X1 on Y0, and Y1 on X0). However, I am lost. Could not find the instruction in your video..
@HarryJayCavite
@HarryJayCavite 2 года назад
thank you so much
@Artyom109Zinchenko
@Artyom109Zinchenko 4 года назад
Hi Mike, thanks a lot for the video! I just wanted to ask why don't you try working with Rstudio? This will remove the necessity to copy-and-paste code from a text file and go back and forth between pages. In any case, thank you!
@mikecrowson2462
@mikecrowson2462 4 года назад
Hi Artyom, you are welcome! And thanks for suggestion about RStudio! I may use it in some of my future videos. Best wishes!
@annanoer5627
@annanoer5627 2 года назад
Thanks so much! Is this the same as cross lagged model?
@ssrrapper
@ssrrapper Год назад
Question...at 10:54, to estimate the covariances between ses, mastery, and perfgoal, you created the line "mastery~~perfgoal+ses". Does it matter which variable is on the left side? Could you have typed "perfgoal~~mastery+ses" or "ses~~mastery+perfgoal"?
@bradleypan-weisz2105
@bradleypan-weisz2105 3 года назад
Hi Mike. Thank you for the video. I'm curious though -- is it completely necessary to estimate the variances of the exogenous variables? If it is not necessary, is there a reason why you estimate them?
@mikecrowson2462
@mikecrowson2462 3 года назад
Hi Bradley, the variances and covariances of the exogenous variables are generally estimated in SEM. If you use the 'sem' function instead of the 'lavaan' function in lavaan, you don't have to be as explicit about it. But they are still being estimated in the total number of parameters. In a path model such as this, the parameters that are estimated are: (a) paths, (b) variances of exogenous variables, (c) covariances of exogenous variables, (d) variances of disturbance terms (i.e., prediction errors associated with endogenous variables, and (e) any covariances among disturbances (if any are included in the model). Hope this helps!
@bradleypan-weisz2105
@bradleypan-weisz2105 3 года назад
@@mikecrowson2462 Thank you for your quick response!
@xuyang2776
@xuyang2776 10 месяцев назад
Hello,Mike. Could you tell me how to get the residual vairances of a MSE by lavaan()? Thanks
@yergali
@yergali 3 года назад
Thank you! Just in case, install.packages("lavaanPlot") does not work anymore, do you have any ideas to solve it?
@mikecrowson2462
@mikecrowson2462 3 года назад
You're very welcome. Well, it looks like I will have to do some research on that possibility to see if there is anything new out there. I put this video together awhile back, so maybe things have changed. I'll check and update if I find something newer! Cheers!
@saharsalehi8070
@saharsalehi8070 3 года назад
Hi Mike. Thank you for the informative clip you made. At exactly 4:10-4:15, you mention a program you used to make the path model. May you please help me to understand what software you are mentioning?!
@mikecrowson2462
@mikecrowson2462 3 года назад
Hi Sahar, I used the AMOS Sem program (it is integrated with SPSS) to draw out the model (it saved me from doing this in Powerpoint, which is a pain). I actually did not run it or anything in AMOS. AMOS just has a good drawing program that is easy to use - and I tend to like to include visuals when I am teaching. Unfortunately, I have yet to see any options in R that will allow such nice drawings. There are options, but they are not the best in my opinion. Nevertheless, lavaan is way more powerful than AMOS in terms of options. Cheers!
@saharsalehi8070
@saharsalehi8070 3 года назад
@@mikecrowson2462 Many many thanks for your reply.
@annanoer5627
@annanoer5627 2 года назад
Hello ! How do I overcome this: "Error in Sigma.inv * sample.cov : non-conformable arrays"
@raimo1799
@raimo1799 4 года назад
Hi Mike! I really enjoy each of your tutorials they have always been helpful to me. By the way, I am trying to follow this video for my own analysis but unfortunately, it is not showing up. Actually, when I run the model with my variables, it appears the same in the console box, and when I try the following step (fit, for the analysis results), still there is no results appearing but an error notification. Could you please assist me? Hoping forward to read from you soon.
@juliethasagun1634
@juliethasagun1634 4 года назад
I think it would be helpful if your post your error notification.
@brittjane4486
@brittjane4486 4 года назад
Thanks, this is great. This would be easier to see the output in R Studio - is there a reason you don't use it?
@mikecrowson2462
@mikecrowson2462 4 года назад
You're very welcome. Regarding your question: No, there's no reason I don't use R-studio beyond the fact that I'm just used to doing things the way I learned with R. I'm probably more like folks who still use LISREL matrix command language instead of using SIMPLIS language (which is way easier). I guess I'm a bit "old-fashioned"(why drive when I can take a horse and carriage, right? haha). However, I'll certainly consider incorporating it in future in R presentations - especially if it might help folks see things on the screen. Thanks for the suggestion. Best wishes!
@Cjstistajh
@Cjstistajh 2 года назад
Hi, I wonder what if it is a non recursive model? Is it the same?
@udimakov3702
@udimakov3702 4 года назад
A very nice presentation Could you please supply a link for the data and text files? Cheers!
@mikecrowson2462
@mikecrowson2462 4 года назад
Hello. Thanks for visiting. The links to the data and text files are underneath the video description. cheers!
@assefawasie9612
@assefawasie9612 2 года назад
dear mike it is good lecture thank you please help note link
@Jaji1948
@Jaji1948 2 года назад
What is SES?
@mikecrowson2462
@mikecrowson2462 2 года назад
SES is socioeconomic status. Cheers!
@nguyentho9467
@nguyentho9467 8 месяцев назад
Thank you so much for this extremely helpful video. You explained all the basics so clearly - really appreciate your time and effort! Saved me hours or days!
Далее
Path Analysis
35:29
Просмотров 44 тыс.
ПОМОГЛА НАЗЫВАЕТСЯ😂
00:20
Просмотров 2,9 млн
Разоблачение ушные свечи
00:28
Просмотров 823 тыс.
Principal components analysis in R
26:49
Просмотров 157 тыс.
Path Analysis in R
51:21
Просмотров 18 тыс.
Path analysis in R | SEM | Lavaan
11:03
Просмотров 20 тыс.
Punch Card Programming - Computerphile
14:55
Просмотров 876 тыс.