Introductory Stata 22: Marginal Effects (margins, marginsplot)

Опубликовано: 27 Январь 2022
на канале: Dr. Bob Wen (Stata, Economics, Econometrics)
8,756
67

In this video, we will continue to use the "margins" command. We will produce the marginal effect of a continuous variable on the outcome variable by using the "dydx" option. The marginal effect is also called the partial effect because the other variables are held fixed.

#margins #marginsplot #Stata
**********************
22. Marginal Effects
**********************
capture log close
log using marginal.log, text replace

set showbaselevels on

webuse nlsw88.dta, clear
describe
summarize

*marginal effect of grade on lwage
*constant effect
generate lwage=ln(wage)
regress lwage c.grade c.age i.married i.union i.race
margins, dydx(grade)

*marginal effect differs between two union groups
regress lwage c.grade##i.union c.age i.married i.race
margins, dydx(grade) at(union=(0 1))

*marginal effect changes with age
regress lwage c.grade##c.age i.married i.union i.race
margins, dydx(grade) at(age=(34(2)46))
marginsplot

log close

【Free Courses on My YouTube Channel】

Economics in Real Life:
   • Economics in Real Life  

Solutions to Introductory Econometrics A Modern Approach 7th Edition:
   • Solutions to Introductory Econometric...  

Solutions to Microeconomics Theory and Applications with Calculus:
   • Solutions to Microeconomics Theory an...  

Stata Tutorials:
   • Stata Tutorials  

Five Minute Econometrics (Econometrics Tutorials):
   • Five Minute Econometrics (Econometric...  

Introductory Microeconomics:
   • Introductory Microeconomics (2022)  

Introductory Stata:
   • Introductory Stata (2022)  

Drum Covers:
   • Drum Covers  

【粵語Cantonese】現實生活中的經濟學:
   • 【Cantonese粵語】現實生活中的經濟學  

【國語Mandarin】現實生活中的經濟學:
   • 【Mandarin國語】現實生活中的經濟學  

【粵語Cantonese】微觀經濟學基礎:
   • 粵語Cantonese微觀經濟學基礎2022  

【粵語Cantonese】五分鐘計量經濟學:
   • 【Cantonese粵語】五分鐘計量經濟學(計量經濟學輔導)  

【國語Mandarin】五分鐘計量經濟學:
   • 【Mandarin國語】五分鐘計量經濟學(計量經濟學輔導)  

On the Road:
   • On the Road  

【Become a Supporter/Member of the channel ($2.99) to get PDF transcripts for】
1. Solutions to Microeconomics Theory and Applications with Calculus 5th Edition,
2. Solutions to Introductory Econometrics A Modern Approach 7th Edition,
3. Introductory Stata (2022),
4. Introductory Microeconomics (2022), and
5. Introductory Stata: Summary Statistics and Data Management
   / @bobwenecon  

In addition to the videos on my YouTube channel, you can also learn Stata from my free Alison online courses.

Introductory Stata: Summary Statistics and Data Management
https://alison.com/course/introductor...

Introductory Stata: Graphics and Data Visualization
https://alison.com/course/introductor...


Смотрите видео Introductory Stata 22: Marginal Effects (margins, marginsplot) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dr. Bob Wen (Stata, Economics, Econometrics) 27 Январь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,756 раз и оно понравилось 67 людям.