Пікірлер
@InCaseofEconStruggles
@InCaseofEconStruggles 2 күн бұрын
@@srishtymehra3383 code below! cap log close clear all est clear *********Directory Settings global path "PATH" *********Auto Data sysuse auto, clear ************************** Panel est clear eststo clear eststo weight_stage2: ivregress 2sls price (mpg=weight), robust eststo weight_stage1: reg mpg weight, robust estadd scalar f round(e(F),0.001) eststo length_stage2: ivregress 2sls price (mpg=length), robust eststo length_stage1: reg mpg length, robust estadd scalar f round(e(F),0.001) #delimit ; esttab weight_stage2 length_stage2 using "${path}\Panel Table.tex", fragment replace se(3) b(4) mtitles("Weight" "Length") keep(mpg) coeflabels(mpg "MPG") prehead( \begin{table}[htbp]\centering \\ \def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}\\ \caption{Seperate Panels} \\ \begin{tabular}{l*{2}{c}} \hline\hline ) posthead( \hline \\ \multicolumn{2}{l}{\textbf{Panel A: IV Estimates}}\\ \\[-1ex]) stats(N r2, label("N. Obs" "R2") fmt(0 %9.3f)) ; esttab weight_stage1 length_stage1 using "${path}\Panel Table.tex", fragment append se(3) b(4) nonum nomtitles keep(weight length) coeflabels(weight "Weight of Car (Lbs)" length "Length of Car (In)") posthead( \hline \\ \multicolumn{2}{l}{\textbf{Panel B: First Stage}} \\ \\[-1ex] ) scalars("f F-Stat") prefoot("\hline") postfoot( \hline\hline \multicolumn{5}{l}{\footnotesize Standard errors in parentheses}\\ \multicolumn{5}{l}{\footnotesize Variable in column header denotes instrument used for Miles per Gallon (MPG).}\\ \multicolumn{5}{l}{\footnotesize Dependent variable in Second stage is Price.}\\ \multicolumn{5}{l}{\footnotesize First stage reports the coefficient of the instrument on MPG.}\\ \end{tabular} \\ \end{table} ) ;
@srishtymehra3383
@srishtymehra3383 2 күн бұрын
Thanks for posting such a valueable stuff in your videos. Just a quick query: what about the code for this one for creating panels?
@InCaseofEconStruggles
@InCaseofEconStruggles 2 күн бұрын
I’ll update this description shortly and paste the code thank you for letting me know sorry about that!
@InCaseofEconStruggles
@InCaseofEconStruggles 2 күн бұрын
Just posted as a comment!
@shalomfiker
@shalomfiker 5 күн бұрын
Nice Video. could you share some material regarding OLG model for-three period?
@InCaseofEconStruggles
@InCaseofEconStruggles 5 күн бұрын
Hello! Thank you for the comment! I am still working on the material for OLG for infinite periods, which should help with 3 period models. When I get that out if it is not helping you let me know and I can try to do specifically 3 periods or something similar.
@lucasdallaverde9009
@lucasdallaverde9009 7 күн бұрын
Great video!
@InCaseofEconStruggles
@InCaseofEconStruggles 7 күн бұрын
Thank you for the comment I’m so glad this video was helpful!!
@huangsenjie
@huangsenjie 9 күн бұрын
The vedio is very helpful! A little confused about the line "{1}" "{p{\linewidth}}": could you please explain what it is for? It seemed this line is not necessary to reach the results this vedio mentioned.
@InCaseofEconStruggles
@InCaseofEconStruggles 9 күн бұрын
This is useful if your table gets really wide and you want to make sure it fits on a single page and doesn’t get cut off by the width of the page
@joed3325
@joed3325 19 күн бұрын
Can you derive the negative weights? I thought that'd be the most interesting bit
@InCaseofEconStruggles
@InCaseofEconStruggles 19 күн бұрын
Are you talking like in theory to show them or like using an empirical example or both?
@D-3y3
@D-3y3 19 күн бұрын
Thank you so much for the video, very clear and useful.
@InCaseofEconStruggles
@InCaseofEconStruggles 19 күн бұрын
Thank you so much! I’m glad you found these videos helpful and appreciate the comment!
@sam-uc7qc
@sam-uc7qc 22 күн бұрын
chat am i cooked
@InCaseofEconStruggles
@InCaseofEconStruggles 22 күн бұрын
You got this!
@sam-uc7qc
@sam-uc7qc 21 күн бұрын
@@InCaseofEconStrugglesif i pass im giving you all the credit
@InCaseofEconStruggles
@InCaseofEconStruggles 21 күн бұрын
If you pass it means you had the basics, I just helped you get the last bit to make it through! Also please share with your friends if these videos help, and feel free to comment on other videos so that other people can find them more easily!
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Have you ever read the data on foot suckers in your area? I bet there’s a couple near by 😏
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
I’ve adopted several cats but unfortunately their feet are cute and not sexy 😔
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
I struggle how that relates to iv weights
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Sharp toenails vs fuzzy hairy toes? Personally I love the satisfying slices I get from inserting sharp toenails into my rectum, but the sweet tangy flavor savor fuzzy toe hair is very close to my heart. I don’t think I can choose!! Thoughts?
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Who draws the sexiest feet: bill or Dan?
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Definitely Bill
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
The price of my feet pics range from $300-$1400. What’s the floor of my prices?
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Not quite what that is but close!
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Wow I came here for the foot content but the Econ lesson was a nice appetizer!
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Thanks? I think?
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Please call the cops my boyfriend just shat on my face
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Not the kinda struggle I can help with
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
A piece of advice: if you have Milo teach us I might pull my attention away from my toes long enough to absorb the lesson 😎
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Valid I guess
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
If I had to label myself it would be someone who loves feet
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
My favorite externalities are the ten externalities on my feet 😩
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Those are extremities close though!
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Unpopular opinion: money value should be based on attractiveness of feet pics
@StinkyPeteLovesFeet
@StinkyPeteLovesFeet 29 күн бұрын
Dr coach case I have an Econ struggle: my tummy hurts 😢
@InCaseofEconStruggles
@InCaseofEconStruggles 29 күн бұрын
Don’t Web Md that
@Bill_in_your_econ_models
@Bill_in_your_econ_models Ай бұрын
Great video! Looking forward to solving the rest of this equilibrium!
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
You and me both! Glad you liked it
@manudevjain7738
@manudevjain7738 Ай бұрын
Can you please add the full-lenght video, it would be really helpful. Thanks.
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
It’s not created yet but I will add it to the list yes. Thanks for the comment!
@e555t66
@e555t66 Ай бұрын
This was very helpful. Thank you very much!
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
Thank you so much!! Comments really help KZbin share my videos with new people so I really appreciate you letting me know! Feel free to comment on any other videos you found helpful and share links with your friends!
@e555t66
@e555t66 Ай бұрын
@@InCaseofEconStruggles I will.
@macapex8921
@macapex8921 Ай бұрын
thank you
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
Glad it was helpful! Thank you for commenting!
@pavel672
@pavel672 Ай бұрын
Oh wow! Such an underrated channel/ video! I have looked at a lot of videos which try to explain this concept and this is by far the best! This is especially helpful since I find Angrist and Pishkes "Mostly Harmless" quite dense! Thank you!
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
Thank you so much! Comments and likes on each video really help KZbin push these videos/this channel to new people so I really appreciate it! Also feel free to share!
@thandizanizulu7887
@thandizanizulu7887 Ай бұрын
Hello, how do I tabulate say 10 variables with same responses in one table at once
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
Hello. So you want like a cross tab where you see all possible combinations of 10 variables?
@InCaseofEconStruggles
@InCaseofEconStruggles Ай бұрын
Remember to leave a comment if there is something you want me to add or cover in more detail!
@juanjo9640
@juanjo9640 2 ай бұрын
Fantastic video! Greetings from Spain
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
I’m so glad this was helpful! Is there anything I don’t plan to cover you had hoped would be in part 2?
@Caseanddrewgeekshow
@Caseanddrewgeekshow 2 ай бұрын
Great video! Would also like more advanced macro series and intermediate macro
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
Thank you!
@Caseanddrewgeekshow
@Caseanddrewgeekshow 2 ай бұрын
@jwbpark here is the video on Lucas tree pricing! Will be two parts
@shouvikbanik
@shouvikbanik 2 ай бұрын
Cobb Douglas utility function is given as U(X,Y) = X^(1/2)Y^(1/2) Goods are X and Y price ar Px and Py income of consumer is M Maximum utility attained by consumer if Alpha=1/2 Px=2 Py=8 M = 4000. Where and how do I use the alpha?
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
So in this one your alpha and your beta are 1/2. My understanding of this questions is that alpha+beta=1 so you find beta as 1-alpha and then you can use the shortcut
@matthewong8497
@matthewong8497 2 ай бұрын
Thank you for saving my thesis.
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
I’m so glad this was helpful! Best of luck writing up the thesis!
@grantgibson8680
@grantgibson8680 2 ай бұрын
If you have a lot of different folders you should still set your directory to the head and use relative filepaths: use "./data/name of file.dta" then the other person still just needs to change the one line in the cd at the top of the do file. All the relative file-paths will be preserved.
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
You absolutely could do that but I found it’s easiest to follow if you just use globals. I’ve seen people use both and I’ve seen it go wrong more often with relative file paths
@jwbpark
@jwbpark 2 ай бұрын
This is veryhelpful. Can we do more of these advanced macro series more?
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
Yes! I am working on the second part of the OLG currently. And there will likely be 4 parts. It just takes longer to get them out since I really want to make sure everything is clear and concise to be as helpful as possible. I appreciate all the comments!
@jwbpark
@jwbpark 2 ай бұрын
Yes, would like see Lucas Tree etc
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
Definitely in the planning stages for that. I was planning to derive the stock price using a Lucas tree model. Would that be best in one video even if it’s on the longer side or better to split into 2?
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
Check out the new video! Just posted part 1 of the Lucas asset pricing
@Bill_in_your_econ_models
@Bill_in_your_econ_models 2 ай бұрын
This is a great video on understanding lambda in a lagrangian maximization problem, especially in the UMP context.
@anushkamullick4063
@anushkamullick4063 2 ай бұрын
this is super helpful, Thanks a lot Case
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
I’m so glad this was helpful!!
@anushkamullick4063
@anushkamullick4063 2 ай бұрын
Again, extremely helpful.
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
Glad this was the video you were looking for!
@Bill_in_your_econ_models
@Bill_in_your_econ_models 2 ай бұрын
These seem like they are going to be so helpful for people doing Lagrangian Optimization with Economics! and I get a shout-out several times in these.
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
That’s the goal!
@girishvenkataraman4504
@girishvenkataraman4504 2 ай бұрын
converting to lower is neat idea. Never thought of that one.
@InCaseofEconStruggles
@InCaseofEconStruggles 2 ай бұрын
Glad it was helpful! You can also do ,upper-> ALL CAPITAL ,proper->First Letter Capital
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
@lucasdallaverde9009 This video should be the one you are looking for!
@lucasdallaverde9009
@lucasdallaverde9009 3 ай бұрын
Thank you so much again! You are a lifesaver
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
I’m glad these videos are so useful!
@lucasdallaverde9009
@lucasdallaverde9009 3 ай бұрын
Great videos! Do you have any video showing how you add two "headings" in the table? In the same way as in table 5
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
I’m glad you found it helpful! Let me look and I will see if one video does that and let you know. Otherwise I will make that video and tag you in it when it’s ready!
@lucasdallaverde9009
@lucasdallaverde9009 3 ай бұрын
Thank you so much!!
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
kzbin.info/www/bejne/p4CUiIGFnt9lf9U&ab_channel=InCaseofEconStruggles is the video you are looking for
@pjakobsen
@pjakobsen 3 ай бұрын
Great summary
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
I’m glad you found this helpful and I super appreciate the like and comment!
@Bill_in_your_econ_models
@Bill_in_your_econ_models 3 ай бұрын
This video is where I got my first big break!
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
Indeed!
@Bill_in_your_econ_models
@Bill_in_your_econ_models 3 ай бұрын
Great example!
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
Thanks!
@Bill_in_your_econ_models
@Bill_in_your_econ_models 3 ай бұрын
Glad these asset pricing videos are still going!
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
Thanks!
@Bill_in_your_econ_models
@Bill_in_your_econ_models 3 ай бұрын
This is really helpful! Thanks
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
Glad it seems helpful!
@MateusLima-wu7me
@MateusLima-wu7me 3 ай бұрын
keep up with the content!
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
I’m happy you’re finding this helpful!
@MateusLima-wu7me
@MateusLima-wu7me 3 ай бұрын
@@InCaseofEconStrugglesI dont understand why the algorithm isnt pushing your videos to reach more people... Anyhow I have Microecon exam Tuesday so I have to binge watch a couple of your videos. Thanks man
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
Of course! Comments and likes help the algorithm push it more so if you would comment and like any video that helps you I would super appreciate it!!
@alihussien7935
@alihussien7935 3 ай бұрын
Thanks for your videos. I have a problem with merge I won't to merge 1:1 sam key variable . At all I have 7 dataset I like to merge. I get error says variable _merge already defined stata. How can we solve that problem?
@InCaseofEconStruggles
@InCaseofEconStruggles 3 ай бұрын
Great question I’m glad you like them and they are helpful! You have two options Option 1: rename _merge after you merge to something like _merge_Xxx to track which data you merged on Option 2: specify the nogen option in the merge command I.e. merge 1:1 VAR using DATA, nogen This will not create the merge variable