Тёмный
Learn Coding with Us
Learn Coding with Us
Learn Coding with Us
Подписаться
This channel provides information for people who are mainly interested to learn coding skills in different software, such as ArcGIS, Eviews, Excel, LaTex, MATLAB, Python, R, R Studio, SPSS, STATA, etc. However, this channel does have some entertainment, travel, and events videos in our everyday life.

Growing up in a rural village in Bangladesh (BD), We understand that technology is an important medium for learning nowadays. We started learning STATA from our undergraduate degrees in Economics in BD. Coming to the Ph.D. program in Economics at the University of New Mexico, we have an opportunity to learn a lot of software and use them in our research areas.

To get more coding videos, please subscribe to our channel. Stay tuned !! Happy Learning !!
Snow 2022
0:22
2 года назад
Snow looks like rain
0:51
2 года назад
Комментарии
@AAFREENKHAN-gb8xl
@AAFREENKHAN-gb8xl Месяц назад
Hi, I followed the same steps but in the end, all of the values of the variables became 1. please let me know how to correct it
@savannahwalske1071
@savannahwalske1071 Месяц назад
thank you for this! what would change if you were converting from long-format to wide-format?
@rashid.alkhadhuri
@rashid.alkhadhuri Месяц назад
You are a life saver
@NR-rf2bg
@NR-rf2bg 2 месяца назад
what about mac bro
@mubashirgc
@mubashirgc 4 месяца назад
wonderful
@Learn-Coding-with-Us
@Learn-Coding-with-Us 4 месяца назад
You are most welcome!
@atiquezaman7128
@atiquezaman7128 8 месяцев назад
This is amazing, thank you. Do you have a suggestion for dealing with data with multiple header rows?
@thalesromao2239
@thalesromao2239 9 месяцев назад
Tks Man
@yonghyeon123
@yonghyeon123 Год назад
This just saved hours of work. GG
@user-xt2dr1ej2o
@user-xt2dr1ej2o Год назад
Hello,I have a question.What are the connections and differences between eventdd and the event study that should calculates CAR?
@stephan8345
@stephan8345 Год назад
Thanks, amazing!
@Learn-Coding-with-Us
@Learn-Coding-with-Us 4 месяца назад
You are most welcome!
@top10trendingitems88
@top10trendingitems88 Год назад
Thx for sharing. Any idea on how to add labels to table that results from createtableone in tableone package in r?
@mariusvdb7048
@mariusvdb7048 Год назад
My man
@chandankumarswain9919
@chandankumarswain9919 Год назад
Vedio is very helpful for beginners. I have one doubt that is have health insurance or have not health insurance, taken for which period (before or after) in your study? In DiD outcome variable, which period considered?
@sabaaslam4766
@sabaaslam4766 Год назад
diff command shows error, could you please guide me what is the reason and how can I get results in form of before and after
@sabaaslam4766
@sabaaslam4766 Год назад
command diff is showing error please guide me
@user-hx5km8op7i
@user-hx5km8op7i Год назад
Hi, Thank you very much for your video. I tried exactly same thing but my stata will not plot the graph, after *eventdd asmrs pcinc asmrh cases i.year i.stfips, timevar(timeToTreat) ci(rcap) /// cluster(stfips) graph_op(ytitle("Suicide") xlabel(-20 (5) 25)) * command, Is there alternative way to plot it? (mine only shows the Linear regression result...)
@akashkovuri4202
@akashkovuri4202 Год назад
you just saved hours of time. Thanks bro.
@Learn-Coding-with-Us
@Learn-Coding-with-Us 4 месяца назад
You are most welcome!
@zodos94
@zodos94 Год назад
is there a difference between using diff command and didregress please?
@mangomilkshakelol
@mangomilkshakelol Год назад
what's the shortcut for mac for 0:44 to populate the pivot table window?
@prakashanisingh3775
@prakashanisingh3775 Год назад
Can you please provide your do file? It will be really helpful.
@Learn-Coding-with-Us
@Learn-Coding-with-Us Год назад
Hi Prakashani, I believe you can create the same do file by watching my video. Thank you.
@adamsmith2966
@adamsmith2966 Год назад
Apu, Me, Tariq from Economics, IU 2010-11. Thank You & best wishes for your RU-vid channel
@Learn-Coding-with-Us
@Learn-Coding-with-Us Год назад
You are most welcome!
@c.comploj3775
@c.comploj3775 Год назад
Thank you! Please continue doing videos!
@Learn-Coding-with-Us
@Learn-Coding-with-Us Год назад
Hi Comploj, you are most welcome, and thank you for your valuable comments.
@onyinyeekeagwu1993
@onyinyeekeagwu1993 Год назад
This was super helpful and easy to follow
@Learn-Coding-with-Us
@Learn-Coding-with-Us Год назад
Thank you so much for your wonderful comment!!
@LifeLearned460
@LifeLearned460 Год назад
A nice one but next time type the commands as you go
@anthonygalka4326
@anthonygalka4326 Год назад
Oh my Gosh you are AWESOME dude!!! I was looking at so many other methods to convert from Long to Wide and this by far..... by far the easiest way to do it! Thank you!
@Learn-Coding-with-Us
@Learn-Coding-with-Us Год назад
You are most welcome!
@mdrashidulislam3469
@mdrashidulislam3469 Год назад
Thanks
@mariadelpilarfloreshernand3646
I can't install the program, can you help me please?
@cristinaecheverri3724
@cristinaecheverri3724 Год назад
Thank you so much. however, I cannot see the graph. it wasn't made by the command
@Alphaswifty
@Alphaswifty Год назад
this was great, it was simple and easy to understand. thank you so much for uploading this! :)
@florinemaan7838
@florinemaan7838 2 года назад
Isn't using the "xtreg" command better because you have panel data? In stead of "reg"?
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
my data is repeated cross-sectional data. it is good to use "xtreg" command if you have panel data
@priyankagoyal1331
@priyankagoyal1331 2 года назад
Which is better- event study in Excel or stata? Which is less time consuming? I have to apply it on a large no. of companie. Kindly guide.
@fabiangodelitz7307
@fabiangodelitz7307 2 года назад
Hello! Thank you very much, the video was very helpful so I subscribed to your channel! I just have one question - the graph_op command doesn't work for me and I cannot install it either. How can I get such a nice graph like you?:) All the best
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Thank you so much for your support for our channel. Did you install "eventdd" command in your stata? If not, please install it following my video 2:23. If yes, you can try again by reinstalling the command using the command line I have mentioned 2:23 in my video. Please let me know if that solves your problem. Thank you again.
@fabiangodelitz7307
@fabiangodelitz7307 2 года назад
@@Learn-Coding-with-Us I had a bug in the dataset, now it gives me the graph automatically, just like it should. Thanks for your help! All the best, Fabian
@weixiaowu3543
@weixiaowu3543 Год назад
@@fabiangodelitz7307 Hi Fabian, Mine also didn't show the graph. What kind of bug do you have? Please give me a clue so that I can clean up my data. Thx!
@sputnijk
@sputnijk 2 года назад
thanks atiq
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
You are most welcome.
@Tvanlamoen
@Tvanlamoen 2 года назад
hello madam, I noticed you removed the treatment and post dummy variables from the regression. I assume its because of collinearity. But does STATA not do this automatically, or do we have to do it manually?
@Tvanlamoen
@Tvanlamoen 2 года назад
I have a xtset firm year when i run "xtreg diff post treat i.year , fe" it automically drop "treat" , but it doesnt drop "post"
@tinarolle3434
@tinarolle3434 2 года назад
Great video! I´m working on similar data but I get the message "no baseline found". What could be the reason for this? I have tried to xtreg my data... but I still get the same error
@karthikasujatha7140
@karthikasujatha7140 10 месяцев назад
How did you solve this? I am having the same issue
@chiaralivorno7719
@chiaralivorno7719 2 года назад
Hi! Thanks for the video, it is really helpful. I would like to perform a Difference in difference combined with inverse probability weighting IPW. I estimated the probit of treatment on the baseline year and obtained the propensity score weights. Now I want to weight the DiD with the inverse of the propensity score (IPW), that is, to estimate the treatment effect between the treated units and their matched control units. Any suggestions for the stata codes? Thank you :)
@MH-ov6sy
@MH-ov6sy 2 года назад
By far the best tutorial on this subject! Keep up the good work! Congrats on a great tutorial
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Thank you so much for these beautiful comments!
@rithikpopat8322
@rithikpopat8322 2 года назад
Hi, Thank you very much for your video. Do you think that similar analysis could be used to conduct an event study analysis on the impact of 9/11 on airline stocks for my undergraduate dissertation?
@joshuaberman1564
@joshuaberman1564 2 года назад
Hello Mam, I just wanted to ask a general empirical question. Why when you control for state fixed effects there is no state1 included in the regression?
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
In my video, when I run the regression, STATA dropped state1 because of collinearity.
@mikkelsommerlund1988
@mikkelsommerlund1988 2 года назад
When I am running the command eventdd, I get an error "command matsort is unrecognized". Can you please explain me why, I am getting this error?
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
run this one to install: ssc install matsort
@md.shahriyerahmed1245
@md.shahriyerahmed1245 2 года назад
In the whole internet there is only one video of "event study on stata"
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Thank you so much.
@yanvianna4737
@yanvianna4737 2 года назад
I'm having difficulties applying the method when we have more than 1 time period before and after. Could you show an example like this?
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Hi Yan, Thank you so much for your comment and subscribe to our channel. Can you write a little bit details? I will explain to you if I know the method.
@okielyrics
@okielyrics 2 года назад
thank you so much, it is really helpful
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Thank you so much for watching this video. We are glad that you found it helpful. Please like this video. Share with your friends. Subscribe to our channel! Please stay tuned!
@rchanes40
@rchanes40 2 года назад
i can´t do it. "egen ... std() may not be combined with by"
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Can you use "help egen" for confirmation of what kind of function you can use with "egen" command? Please do that. To my knowledge, "egen" can not do with the std() function. You need to use the basic variance formula: sigma^2 = E(x^2) - [E(x)]^2 to find the standard deviation. Please use "help egen" command to learn more. Thank you so much for watching our videos. Please like the video, share it with your friends, and subscribe to our channel. Stay tuned!
@michellekatarine2700
@michellekatarine2700 2 года назад
Thank you so much for your video! :) I am currently trying to do my own event study for an university seminar & I struggle a bit with it. But your video definitely helps!! But one question: Why don't we use the treatment dummy "post" in the regression? I think it is really important in order to account for differences before&after the new law has passed? Can you please explain why you don't include it in the regression. Thank you! :)
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Hello Michelle, I am so sorry for the late reply. An event study model is an advantageous tool in estimating the treatment effects of the pre-and post-treatment periods. However, since treatment can be staggered - where the treatment group are treated at different time periods in states, I create a new variable in this video, called "timeToTreat" to address this issue, and run the regression with this variable instead of treatment dummy "post" in the regression. I hope you understand. Thank you so much for watching our videos. Please like the video, share it with your friends. Thanks again.
@michellekatarine2700
@michellekatarine2700 2 года назад
@@Learn-Coding-with-Us Thank you for your reply! This makes totally sense to me :) Best wishes from Germany :)
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
@@michellekatarine2700 You are most welcome!
@ebaifrancis1428
@ebaifrancis1428 2 года назад
Great video. Are those stars added to variables we wish to keep?? I have tried but I get an error message that I have attempted to create an a matrix with too many rows.
@ebaifrancis1428
@ebaifrancis1428 2 года назад
I figured it out. You have to adjust the matsize to a larger value by the command: set matsize 5000.
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
I did not understand your question. Can you mention the minutes where you were watching?
@ebaifrancis1428
@ebaifrancis1428 2 года назад
@@Learn-Coding-with-Us I figured out the solution. I just had to readjust the matsize of my Stata. Upon doing so, I got the output
@pollianylima13
@pollianylima13 2 года назад
Hey, thank you for the video. But can you put a subtitle on it? Cause english is not my first language, and I have some trouble to understand even when it comes from natives.
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Hi Polliany, you are most welcome, and thank you for your valuable comments. I have added the subtitle for you. Please visit the video. I think it will be very helpful for you now. Please like the video, share it with your friends. Thanks again.
@jinseokpark6664
@jinseokpark6664 2 года назад
Could you let me know the link to the data set so that I can follow your instruction better?
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Hi Jin, in my video, 2:48, you can find the link to the data set. Please go through the video. Thank you so much.
@Zerradable
@Zerradable 2 года назад
Hello! Thanks for the video! Do you know how to do a Event Study with triple difference?
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Hi Bruno, you are most welcome. You can follow this paper: deepblue.lib.umich.edu/bitstream/handle/2027.42/108834/tbyker_1.pdf?sequence=1#:~:text=Triple%2Ddifference%20event%2Dstudy%20estimates,Page%2012%204%20paid%20leave I think you need to jointly test the triple difference estimate.
@meriamksouda3281
@meriamksouda3281 2 года назад
hello please the do file Editor-event study
@Learn-Coding-with-Us
@Learn-Coding-with-Us 2 года назад
Please go through the whole video and build the do file by your own. it will be a great way to learn. Thanks for watching our videos!!