Thanks for the video. It went straight to the point. You saved lots of time while cleansing my dataset. Awesome video!
@thedatahall3 күн бұрын
Welcome. Please keep sharing
@DrSunilKumar-k2w4 күн бұрын
very informative and helpful video lecture. I have query that there are 20 companies in my sample whose stock split occurred in a specific year e.g., 2020, but their stock split happened on different dates in that year. in this case how indexlist (BSE Sensex) data will be stagged.
@tanushreedash51396 күн бұрын
Very nice explanation
@thedatahall5 күн бұрын
Thanks. Keep sharing
@sauravmedhi140711 күн бұрын
it would be better if you share the do file of fama french 5 factor model as the file showing the panel data analysis in R
sir can you please tell me how to change the stars and significance level for the correlation matrix, like if I want only 10, 5 and 1 % sig level?
@Lily-cl6zk14 күн бұрын
You are a great explainer thank you
@thedatahall13 күн бұрын
Thanks. Keep sharing
@KrishnenduJ-hc5fg17 күн бұрын
Is there a way I could overlay one graph over another in Stata?
@thedatahall17 күн бұрын
U can do line graphs, like one line over another
@MOHDZAID-pj7hi22 күн бұрын
great video ..thank you for explaining it so lucidly. i am running an event study to check the impact of CEO change on stock prices. i have put everything according to your format but on running the command i am getting the following error- "variable date does not uniquely identify observations in the using data." how this error can be rectified. Please help
@debanjandas700623 күн бұрын
Can we include both regression and panel regression in the same output table in stata?
@thedatahall22 күн бұрын
Yes u can
@debanjandas700622 күн бұрын
@@thedatahall can you show it?
@thedatahall22 күн бұрын
Search for outreg2 command on my channel. There is already a video explaining the process
@debanjandas700621 күн бұрын
I need to store the estimates of various model and show in the horizontal row while dependent variable needs to show in the column. Can it be done?
@najmehmoradi512224 күн бұрын
It's really hard to find a word to show my appreciation. Great explanation and insightful. Thank you!
@thedatahall24 күн бұрын
Thanks. Keep sharing
@adriennesmith365429 күн бұрын
This was helpful - thank you!
@thedatahall29 күн бұрын
Keep sharing
@MiguelVanEs29 күн бұрын
Thanks for the video. I was wondering how you should interpret the final coefficients you obtain after running both stages? Do the coefficients represent risk premia? or rather the effect on returns?
@kwizeralambert1316Ай бұрын
Thank you for your teaching videos. They are very helpful. I was wondering if you have a video on how to combined more than one observations into one single observation in stata. To be clear, let us assume this scenario on disability types: 1- Difficulty in seeing : Yes = 1, No = 0 2- Difficulty in walking : Yes = 1, No = 0 3- Difficulty in speaking: Yes = 1, No = 0 4- Difficulty in hearing : Yes = 1, No = 0 Then we want to combine all these 4 observations into one single observation. This single observation can be named Persons with disability ( Yes: 1, No:0), Any guidance will be appreciated.
@thedatahallАй бұрын
Check this link m.kzbin.info/www/bejne/pn6riYeEi7uBpLc
@Vyquach0Ай бұрын
after concluding that we have time and entity fixed effect in the model, I test Autocorrelation and heteroscedasticity both exist in FEM, what should I do next, please replyyyyyyy
@bhuyashitalukdar2685Ай бұрын
Could not have asked for a more comprehensive video. Thanks a lot
@thedatahallАй бұрын
Welcome. Keep sharing
@bhuyashitalukdar2685Ай бұрын
@@thedatahall Sure. Can i contact you i needed some help?
@bhuyashitalukdar2685Ай бұрын
Is there a way we can report t stat in a different row using asdoc? Or we need to use outreg for that?
@HelloThere-lo3qiАй бұрын
super informative, thank you sir, I was confused why I can't see my command history, turns out I need to save it in log/do file :"
@thedatahallАй бұрын
Welcome
@NicklasAndersenBLАй бұрын
Really good and thorough explanation. Easy to follow
@thedatahallАй бұрын
Thanks
@usamaahmed6056Ай бұрын
You are so brilliant and your effort is great thank you
@thedatahallАй бұрын
Thanks. Keep sharing
@mariadelpilarriverafranco6429Ай бұрын
Thanks for the video! It's really clear and helpful. However, I have a different situation and I'm struggling to use margins command correctly. In my case, the independent variable is a dummy (0/1) and the moderator is a continuous variable. Can you tell me which command I should use to perform margins for this two-way interaction? Thank you in advance.
@stephenhilton2255Ай бұрын
If you group_by the stock, would that prevent you from needing to run it in a loop? Or would these not recognize the grouping?
@frankmeier7595Ай бұрын
I am new in working with R, so you might correct me but I was not able to get it working by grouping for stocks. Maybe @The Data Hall can demonstrate how to use rolling regression on more then 1 company with multiple Facots like HML, SMB and Mkt-Rf on a month base.
@thedatahallАй бұрын
@frankmeier7595 you can email me your data and code i will look into it
@viisoreanuoana79Ай бұрын
Can you please make an example for daily prices? I have daily data downloaded from Refinitiv so I don’t have that same variables and it is confusing how to create the spreadsheet to upload to stata and also the code part with fiscal year is difficult to understand having daily prices. Thanks
@thedatahallАй бұрын
Can you please send me the data at [email protected] i will look into it and guide you
@viisoreanuoana79Ай бұрын
@@thedatahall Thank you! I now sent the email with the data set
@Khanh_00Ай бұрын
I still cant understand how to calculate CAR, CAAR :(( where can I find how to do these on excel
@thedatahallАй бұрын
There r tons of videos on doing event study in excel
@Kuntal20052011Ай бұрын
Sir please provide the data set for practice purpose
@thedatahallАй бұрын
Thanks for identifying. I have added it in the description.
@frankmeier7595Ай бұрын
can you share the complete code?
@thedatahallАй бұрын
Thanks for identifying. I have added it in the description.
@nikolasandikaharyo9826Ай бұрын
Thank you very much for your explanation. You've helpeme me doing my thesis
@thedatahallАй бұрын
Thanks for the kind words. Please share our videos among your academic circle
@edwinsaavedra95182 ай бұрын
Thanks a lot for the explanation
@thedatahall2 ай бұрын
Thanks
@DB-kv3wu2 ай бұрын
Great thanks! It is very informative❤
@thedatahall2 ай бұрын
Thanks
@carolineogbonne23602 ай бұрын
Thanks for this tutorial.
@thedatahall2 ай бұрын
Welcome
@jagathrohan-kr4nl2 ай бұрын
Excellent explanations. Great work. Thank you so much for your clear explanations.
@thedatahall2 ай бұрын
Thanks
@Asadkhan-xt8gs2 ай бұрын
Good job. It is very helpful
@thedatahall2 ай бұрын
Thanks
@arsec422 ай бұрын
I was wondering if its possible to use this method to analyse the risk premium for a specific risk factor through time, and see if there is a signficant risk premium present in specific time periods. Is there a way to do this?
@thedatahall2 ай бұрын
Theoretically we can use this technique but i have to look at some paper that might have done this kind of analysis. If you have paper of this kind please share
@naynay74952 ай бұрын
I get the error "too many filenames" when running the local files : dir.. line. I have 11,000 files to combine. Any idea how to get over this error?
@thedatahall2 ай бұрын
Thats the first time I came across this issue. Can u email me ur code and few files i will look into this ([email protected])
@masintalanana23902 ай бұрын
Great video! Could you also show how to calculate the standard deviation of the value-weighted portfolios?
@wantinggan89602 ай бұрын
Thank you for the video. It is very helpful!
@wantinggan89602 ай бұрын
Is there has the part 2 of the video currently?
@thedatahall2 ай бұрын
Thanks. Yes the 2nd and 3rd part discusses how to perform FF model in Stata and R. Please search fama and french in stata.
@anlanhnguyen-ly9vi2 ай бұрын
Very well explained! Thank you for saving my time :)
@thedatahall2 ай бұрын
Thanks
@zori48772 ай бұрын
Super helpful thanks!
@thedatahall2 ай бұрын
Thanks
@MrTobisonson2 ай бұрын
Can I use this code to calculate the CAR or BHAR an then to analyze the over-or underperformance of IPOs in comparison to a market index? I am not quite sure since there is obviously no data pre IPO.
@thedatahall2 ай бұрын
You can do car and bhar but i am sure how you would do it in case of ipo's. The best source would be past papers related to event studies on ipo.
@naimatkadha8172 ай бұрын
Always very helpful videos on Stata. Thanks for your time and efforts, and instead generosity.
@thedatahall2 ай бұрын
Thanks for the kind words.
@flynndavies35443 ай бұрын
Great video, I was just wondering how you could alter the code to use Logit regressions instead?
@thedatahall3 ай бұрын
You can try with statsby command, asreg will not work in this case.
@petermcadam84153 ай бұрын
great video. how would one incorporate fixed effects?
@ariunajou23183 ай бұрын
Hello, thank you for your video! It is very helpful and informative. You are a real lifesaver 😅 I have a question regarding CARs, Is there a formula how can I check CARs’ t-test significance (139 deals) because I get the data for CAAR (p-value) and AAR(p-value), but not for the CARs
@thedatahall3 ай бұрын
Thanks for the kind words. The car values are in the crossfile.dta
@LeoFIN32 ай бұрын
@@thedatahall How about t-tests and p-values of those invidual CARs?
@thedatahall2 ай бұрын
For these you will have to execute the eventstudy2 command separately for each event
@shwetaagarwal62403 ай бұрын
Your videos are awesome. Thank you for uploading them. Can you please make a video on regression discontinuity design and instrumental variables?
@thedatahall3 ай бұрын
Thanks for appreciation. Sure will keep this topic in my to do list
@shwetaagarwal62403 ай бұрын
@@thedatahall Thank you😀
@BilalHassan-zv8wh3 ай бұрын
Hi. Thanks for the video. I want to run bivariate logistic reg with factor variable such educational or income levels for each year. May you please tell me how this type of loop would work work? Thanks
@thedatahall3 ай бұрын
U can use bys year: logistics etc etc . U may not need loop
@BilalHassan-zv8wh3 ай бұрын
Thanks for quick reply l. have twenty years/countries. It looks more handy to use loops than bys years to draw coefficient plots of bivariate and multivariate models
@BilalHassan-zv8wh3 ай бұрын
Hi. Thanks for the video. I want to run bivariate logistic reg with factor variable such educational or income levels for each year. May you please tell me how this type of loops would work work? Thanks
@lingcao13013 ай бұрын
Hello, great thanks for the video. It is a life saver for me in completing my thesis of event study. However, I encountered a problem as my M&A deals event date are spanning in 15 year with a total of 350 companies worldwide. I intend to use S&P 500 as market index (single factor model) with a separate estimation window for each acquirer of -150 days before event date (each acquirer has its own event date). In this case, my factors.dta instead of having one unique date for market returns for all, there are 350 different date spanning for each acquirer. In this case, how should i conduct forward with your coding? Furthermore, I would love to continue a cross-sectional analysis with CARs from event study by adding firm-level, industry-level and deal characteristics. Would be proactive to set up the code or data in advance along the event study? Thanks so much and I sincerely looking forward to your guidance!
@thedatahall3 ай бұрын
Thanks. With regards to the different event and estimation window, the code take care of this automatically. I couldn't understand the next question. May be you can email me along with some research paper or material and i can guide you.
@rodrigomota33693 ай бұрын
@thedatahall Great explanation! I used the statsby command and I got the coefficients of the factors in the end but I wanted to know how can I obtain the r-squared or the adjusted r-squared in this first approach. Is it possible in the statsby approach or only in the other methods (asreg, xtfmb, etc)?
Hello, My data has 250 companies and the stock return of each company is in each column making it a separate variable, what could be the function used? Plus I would want to save the value of the residuals too. How can I do that?
@thedatahall3 ай бұрын
Check the reshape command
@Lucenne3 ай бұрын
Very well explained, thank you!
@thedatahall3 ай бұрын
Welcome
@abdulmateen61013 ай бұрын
simple but beautifully explained.
@thedatahall3 ай бұрын
Thanks
@abdulmateen61013 ай бұрын
Excellent and precise video, please clarify what is the difference between "bys firm (year) and bys firm year"
@thedatahall3 ай бұрын
Thanks. By firm year means perform the command (whatever command comes after colon ":") for each firm and each year. By firm (date) mean perform the command on each firm but first sort data within each firm based on year