![In Case of Econ Struggles](/img/default-banner.jpg)
- Видео 285
- Просмотров 84 306
In Case of Econ Struggles
США
Добавлен 2 июн 2018
Just a Ph.D. Economics student trying to cure one Case of Econ Struggles at a time.
Like/Subscribe so you don't miss my latest walkthrough of a econ concept/problem, and comment if there is a concept/problem you want me to walk through.
Subjects I tutor/Produce Videos About:
AP/College Intro Micro & Macro
College Intermediate Micro & Macro
College Intro Econometrics
College Advanced Micro & Macro
Graduate Level Micro & Macro
STATA Tips and Tricks
STATA Exporting Results
Causal Inference Methods
Consulting on a Senior Research Project
Like/Subscribe so you don't miss my latest walkthrough of a econ concept/problem, and comment if there is a concept/problem you want me to walk through.
Subjects I tutor/Produce Videos About:
AP/College Intro Micro & Macro
College Intermediate Micro & Macro
College Intro Econometrics
College Advanced Micro & Macro
Graduate Level Micro & Macro
STATA Tips and Tricks
STATA Exporting Results
Causal Inference Methods
Consulting on a Senior Research Project
3 Minutes to Use Bysort to Find Mins and Maxes by Group
In this video I use Bysort in Stata to find the Minimum of a variable within a group. I then use this variable as a reference observation for finding the value of another variable.
Thank you @tawilk for the question!
Thank you @tawilk for the question!
Просмотров: 13
Видео
Master Non-Renewable Resource FOCs in 6 Minutes | NRE Part 7
Просмотров 614 дней назад
Natural Resource Economics | Non-Renewable FOCs: In this video I talk about how to find the Lagrangian and First Order Conditions for a Natural Resource Economic Problem involving non-renewable resources. I set-up the Lagrangian, take FOCs, and interpret them. Timestamps: 0:00 - Intro 0:19 - The Running Example 1:01 - Setting up the Lagrangian 2:42 - Taking First Order Conditions 3:30 - Interpr...
3 Key Takeaways from Intermediate Microeconomics Your Professors Expect You to Know
Просмотров 1214 дней назад
3 Key Takeaways from Intermediate Microeconomics Your Professors Expect You to Know
Welcome to Natural Resource Economics
Просмотров 1321 день назад
Welcome to Natural Resource Economics
Master Finding Elasticities from Marshallian Demand in 4 Minutes
Просмотров 1928 дней назад
Master Finding Elasticities from Marshallian Demand in 4 Minutes
Why Does Everyone Keep Saying This Function is CRRA?
Просмотров 102Месяц назад
Why Does Everyone Keep Saying This Function is CRRA?
7 Minutes to Master WARP, the Weak Axiom of Revealed Preference
Просмотров 40Месяц назад
7 Minutes to Master WARP, the Weak Axiom of Revealed Preference
4 Minutes to Master Arrow-Pratt Risk Aversion
Просмотров 86Месяц назад
4 Minutes to Master Arrow-Pratt Risk Aversion
The Ultimate Guide to Budget Constraints and Budget Sets
Просмотров 89Месяц назад
The Ultimate Guide to Budget Constraints and Budget Sets
Master The Edgeworth Box: Non-Standard Preferences
Просмотров 58Месяц назад
Master The Edgeworth Box: Non-Standard Preferences
Master Second Order Stochastic Dominance (SOSD)
Просмотров 1042 месяца назад
Master Second Order Stochastic Dominance (SOSD)
Adding in Government Bonds | SME Part 4
Просмотров 112 месяца назад
Adding in Government Bonds | SME Part 4
Stata: Exporting results using Adjustbox and Esttab, Part 2
Просмотров 312 месяца назад
Stata: Exporting results using Adjustbox and Esttab, Part 2
Master Certainty Equivalents & Risk Premia Graphically
Просмотров 782 месяца назад
Master Certainty Equivalents & Risk Premia Graphically
Easily Report IV First Stage F Stat using Estat | Sunday Stata Tips
Просмотров 702 месяца назад
Easily Report IV First Stage F Stat using Estat | Sunday Stata Tips
Master First Order Stochastic Dominance (FOSD)
Просмотров 972 месяца назад
Master First Order Stochastic Dominance (FOSD)
Esttab Easily Change Number of Scalar Decimals | Exporting Results Struggle
Просмотров 353 месяца назад
Esttab Easily Change Number of Scalar Decimals | Exporting Results Struggle
Easily Troubleshoot Destring in Stata | Sunday Stata Tips
Просмотров 273 месяца назад
Easily Troubleshoot Destring in Stata | Sunday Stata Tips
How to Solve Static Equilibrium Models with Production in 11 Minutes
Просмотров 614 месяца назад
How to Solve Static Equilibrium Models with Production in 11 Minutes
Flow vs Intertemporal Budget Constraints: Understand the Difference
Просмотров 704 месяца назад
Flow vs Intertemporal Budget Constraints: Understand the Difference
Understand No Arbitrage in SME with Fiscal Policy | SME Part 5
Просмотров 574 месяца назад
Understand No Arbitrage in SME with Fiscal Policy | SME Part 5
6 Ways to Expand Your Infinitely Repeated Game Toolkit, Nash Equilibrium
Просмотров 775 месяцев назад
6 Ways to Expand Your Infinitely Repeated Game Toolkit, Nash Equilibrium
Lucas Tree Asset Pricing II: Understand Prices and Returns | Asset Price Struggles Part 5
Просмотров 785 месяцев назад
Lucas Tree Asset Pricing II: Understand Prices and Returns | Asset Price Struggles Part 5
Pricing a Lucas Tree Risky Asset, Lucas Tree Pricing Part 1
Просмотров 1975 месяцев назад
Pricing a Lucas Tree Risky Asset, Lucas Tree Pricing Part 1
The Solution to the Diamond OLG Model Without Government, OLG Part 2
Просмотров 2455 месяцев назад
The Solution to the Diamond OLG Model Without Government, OLG Part 2
Even Easier Than The Working Directory? Sunday Stata Tip
Просмотров 535 месяцев назад
Even Easier Than The Working Directory? Sunday Stata Tip
Diamond Overlapping Generations Model Setup | OLG Part 1
Просмотров 4355 месяцев назад
Diamond Overlapping Generations Model Setup | OLG Part 1
The Essential Skill for Economic Analyses: Dynamic Optimization
Просмотров 1346 месяцев назад
The Essential Skill for Economic Analyses: Dynamic Optimization
3 Minutes to Master the Working Directory | Sunday Stata Tip
Просмотров 256 месяцев назад
3 Minutes to Master the Working Directory | Sunday Stata Tip
10 Minutes to Understand the Shadow Price of Wealth, Lagrangian Part 2
Просмотров 1256 месяцев назад
10 Minutes to Understand the Shadow Price of Wealth, Lagrangian Part 2
thank you!!
I’m so glad this was helpful! Thank you for taking the time to leave a comment!
Thank you for making this video!
I’m glad you found this helpful! Feel free to share and/or comment on other videos you found helpful so others can find them more easily!
Howdy! I loved the video and it genuinely helped a lot! But towards the end when we find Y* I keep getting 128, and you got 216. And I was wondering how you got it? Thank you so much!
I’m glad it was helpful! I don’t remember off of the top of my head let me review and get back to you in 24 hours and I’ll have a few possible explanations you can use to see if that’s where we differed!
Did you get what I got for x1 star and x2 star? What about lambda star?
@@InCaseofEconStruggles Yes I got all the same numbers for x1*, x2* as well as lambda*. But when I plugged in x1* and x2* I did plug it into x1x2 + 2x1. I am assuming that is the equation that we plug it into to? So when finding Y* I had the equation (8*14)+2(8) and that is how I got 128
Ah I see I didn’t do the multiplication you are correct! Sorry about that and thanks for pointing it out!
@@InCaseofEconStruggles Its no issue at all! I sincerely did love the video though, it was very informative, thank you so much again!
Isn't this linear programming?
No this is Patrick (and intro/intermediate microeconomics). Advanced macro uses linear programming but this is different.
Nice nice ! ☺️
Thank you!!!
Stumbled upon this gem of a YT channel. Thank you!
Im glad you found this so helpful! Please feel free to share to anyone you think could benefit from it and I’m appreciative you took the time to leave a comment!
hi, thank you for the video, can you show "each Walrasian equilibrium allocation is a barter equilibrium allocation, but not vice-versa"
I’m glad you liked the video and it was helpful! Are you also looking for a first welfare theorem explanation with that or just that every Pareto optimal allocation is not necessarily possible in the competitive equilibrium?
Just because you can use a price equilibrium with transfers to sometimes get to a Pareto optimal allocation even if a pure walrasian equilibrium won’t get you to that Pareto optimal allocation
@@InCaseofEconStruggles thank you for your answer, however, I still struggle to make the conclusion, would you mind making a short video regarding this?
@NG_GN sorry I’m trying to clarify if you just want a short video on that not all competitive equilibrium are Pareto optimal or also want the subtle explanation of what can make them be Pareto optimal?
@@InCaseofEconStruggles the latter one, thank you in advance for doing this :)
So good
Thank you for the comment and taking the time to let me know this video helped you! Glad to hear it!
Legend! Thank you - this is exactly what I was looking for.
I’m so glad this was helpful and I really appreciate you taking the time to leave a comment!
amazing explanation, thank you!
I’m glad this was helpful thank you so much for the comment!
Really great explanation!
Thank you for the comment!
I'm trying to find a way to reference the mpg referenced to the min price. can the by sort command do that?
Can you be a bit specific? Like what do you mean referenced? Like you want to sort mpg on the basis of price?
@@InCaseofEconStruggles yes, keeping with the example; I want to create a new variable that is the mpg of the lowest priced car for each manufacturer. not necessarily the lowest or highest mpg, but the referenced value to the lowest priced car.
@@InCaseofEconStruggles my research is looking at the close dates of businesses within an area and I want to identify the close date of the closest in distance business for a specific area.
@tawilk I see it’s hard to explain over words I’ll make that my stata tip for this coming Sunday
Awesome explanation of these concepts, very easy to follow.
I’m so glad this was helpful? Was there any video in particular of these you found more helpful?
@@InCaseofEconStruggles Your video going in depth into compliers and defiers. But all of these are really good. I'm a grad student in an applied econ program and my professor began covering the issues present in IV strategies, the LATE theorem, monotonicity, etc. but he used a very by the books way of presenting it which left me pretty lost. The cat lottery scenario though makes it more clear who receives treatment and why some might find ways to circumvent your initial choices for treatment & control groups.
@thesk1nny1 gotcha thank you that is very helpful feedback! Also feel free to share my videos with others in your class if they’re helpful! And good luck with your graduate studies!
Thank you so much, the video is short and easy to follow :)
Thank you so much for the comment and I’m glad you appreciated the video!
a question. It's a subtlety but here it goes: Why in the sum of the objective function, do you add sums for each state of nature? Shouldn't it be for each node, i.e., for each partial history? an intertemporal sum (which you do have) and an intratemporal sum (for each partial history)?
Great question and yes a very subtle one that granted I did not explicitly talk about so I appreciate you bringing it up! We’re assuming that the states follow a Markov process and so conditional on whichever state happens to occur in period t its all conditional on the state in period 0 we can use the probability of state t to stand in for the probability of a given event history. Does that make sense?
@@InCaseofEconStruggles makes sense but only for the pi(s^t)! not for the sum. I still thank you for having responded so quickly.
@juanbonillabernal7295 let me check my notes I believe conditioning on the state in the previous period, which goes into the pis, should do the trick of capturing each node but I will double check
Thanks for the Info
I’m glad it was helpful!
Great video, thanks!
Thanks Bill!
I tried your code, but I end up with a empty sheet. I don’t know which part goes wrong. Somehow the results are not stored anywhere
Did you install esttab? Like have you done ssc install esttab?
@@InCaseofEconStruggles thank you for your reply. Yes I have installed esttab and it worked well with tabstat. But with tabstat by group, somehow it doesn’t work.
hmmm and your stata output works in terms of in the command window it looks like everything works? Like no error messages?
@@InCaseofEconStruggles yep, that’s the case. But the file is empty sheet.
Can you pose your code here? I want to make sure nothing weird happened when I pasted it into a RUclips comment or when you tried to copy and paste it
I love your videos and regularly watch to keep my Stata knowledge fresh. However, I do not agree with your method of finding the leads and lags using observation numbers. First and foremost, Stata has time series functions such as lead(F.), lag(L.) and difference functions(D.). For instance, to find the lag in any variable, tsset the data and, simply "g lag_x=L.x" gets the job done. Likewise, "g difference_x=D.x" calculates the difference. As for using [n-1], it refers to the preceding observation in the current sort order. However, suppose you have yearly data containing values for 2018 and 2020, but 2019 is absent. If you use tsset or xtset to set the data to yearly frequency, then the value for year 2020 at position [_n-1] will correspond to the value of 2018. However, it will be missing for the variable l.value, which is the way it is supposed to be.
Yes that is a good point and I definitely need to add a video about that. My method is more general to using different observations relative to an observation to calculate values and I should be more clear about being careful when using it with data when you can use lags and leads. Thanks!
I think a video on doing it this way would be super helpful just in general.
Not a phd econ student yet (but hopefully soon in several years). Really apreciate this kind of videos!! Thanks
Best of luck in the coming years and I’m glad you find these videos helpful!!
a qq: A Question: with Stata, I am able to label vars successfully ( I can see that in the data table). But I am unable to see the labeled vars names in a logistic model output. Is there a way to make vars' label appeared in the model output (var name, coefficient, t- value, p, and CI)?
Hi Toni, It depends what you are using to output your logistic results. I highly recommend checking out my videos on exporting results which may be helpful for doing that. Feel free to let me know if you still have questions on those videos!
Excellent video Case! A small contribution, though. After typing "return list", if you type "matrix list r(table)", it shows you so much useful information, such as the coefficients, std. errors, probs,CIs,..etc. More specifically, r(table):9x2 includes 9 different values for 2 of the variables. It will be r(table):9x3, had you regressed price on two regressors. You can use any of these information. For instance, "scalar se_mpg=r(table)[2,1]" gives you the standard error of mpg.
Yes exactly and thank you for the comment! You can also generally get at it a different way, which is what I show just because I think it’s more intuitive to say “_se[mpg] than figure out row and column number of the matrix but you’re absolutely correct that your method would work as well! Useful for other viewers of this video sure so thank you again!
Clear video I think
Im glad you thought it was clear! I also really appreciate the comment!
I just wanted to know how sealed bids work what is this lol
Some auctions are not how they look on TV, with a guy at the front calling out the bid and saying "going once, going twice, sold" sort of deal. Instead another type of auction is there is an object in the room and a box in the middle of the room. If you want to bid on the object you write down your name and your bid, how much you want to pay, on a piece of paper in a little booth, so no one else can see your bid. You put that paper in a sealed envelope and drop it into the box. When the auction closes they take out all the envelopes and decide who gets the object and what they pay. Does that make more sense?
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.
I am glad you find these videos helpful! I do not have a video, but see if this helps you: Suppose you define each variable as "diff_x" e.g. "diff_see" is 1 if the person has difficulty seeing. The easiest option is to use a generate function like the following: gen difficulty=(diff_see==1 | diff_walk==1 | diff_speak==1 | diff_hear==1) This will create a variable that is 1 if any of those four variables are equal to 1, and 0 ONLY if the person has a 0 for each of the 4 difficulty variables. Hope this helps!
@@InCaseofEconStruggles Thank you so much for the quick reply. Let me try.
@@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} ) ;
Thanks for posting such a valueable stuff in your videos. Just a quick query: what about the code for this one for creating panels?
I’ll update this description shortly and paste the code thank you for letting me know sorry about that!
Just posted as a comment!
Nice Video. could you share some material regarding OLG model for-three period?
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.
Great video!
Thank you for the comment I’m so glad this video was helpful!!
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.
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
Can you derive the negative weights? I thought that'd be the most interesting bit
Are you talking like in theory to show them or like using an empirical example or both?
Thank you so much for the video, very clear and useful.
Thank you so much! I’m glad you found these videos helpful and appreciate the comment!
chat am i cooked
You got this!
@@InCaseofEconStrugglesif i pass im giving you all the credit
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!
Have you ever read the data on foot suckers in your area? I bet there’s a couple near by 😏
I think you found the wrong channel. We do econ here
I’ve adopted several cats but unfortunately their feet are cute and not sexy 😔
I struggle how that relates to iv weights
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?
Not quite what an RDD is.
Who draws the sexiest feet: bill or Dan?
Definitely Bill
The price of my feet pics range from $300-$1400. What’s the floor of my prices?
Not quite what that is but close!
Wow I came here for the foot content but the Econ lesson was a nice appetizer!
Thanks? I think?
Please call the cops my boyfriend just shat on my face
Not the kinda struggle I can help with
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 😎
Valid I guess
If I had to label myself it would be someone who loves feet
Label scalars not feelings.
My favorite externalities are the ten externalities on my feet 😩
Those are extremities close though!
Unpopular opinion: money value should be based on attractiveness of feet pics
Its fiat money not feet money
Dr coach case I have an Econ struggle: my tummy hurts 😢
Don’t Web Md that
Great video! Looking forward to solving the rest of this equilibrium!
You and me both! Glad you liked it
Can you please add the full-lenght video, it would be really helpful. Thanks.
It’s not created yet but I will add it to the list yes. Thanks for the comment!
This was very helpful. Thank you very much!
Thank you so much!! Comments really help RUclips 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!
@@InCaseofEconStruggles I will.
thank you
Glad it was helpful! Thank you for commenting!
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!
Thank you so much! Comments and likes on each video really help RUclips push these videos/this channel to new people so I really appreciate it! Also feel free to share!