Stata Tutorials Topic 48: Cross-Sectional Models (Options and Coefficient Visualization) | Regression Analysis and Estimation Methods Using Stata
Hi, I am Bob. Welcome to the Stata course on regression analysis and estimation methods. We have learned basic Stata commands for the OLS regressions and commonly used estimation approaches. Today, we will look at some options for the OLS models we haven't discussed in previous topics, such as the variance-covariance option for standard errors and the standardized coefficient option. We will also graph the estimated coefficient plots. We can plot the coefficients from different models in a diagram. It gives us a straightforward comparison of the estimates.
Please download the dataset BOB3.dta for this topic:
https://drive.google.com/file/d/1_28K...
#Stata #vce #beta #crosssection #margins #marginsplot #coefplot #RegressionAnalysisandEstimationMethods #tutorial
The Stata commands in this video:
*OLS
regress lwage schooling c.age##c.age ib5.health i.married i.female i.race
estimates store OLS
*Robust Option
regress lwage schooling c.age##c.age ib5.health i.married i.female i.race, vce(robust)
estimates store OLS_robust
esttab OLS OLS_robust, label mtitle b(%7.4f) se(%7.4f) varwidth(28) keep(schooling age 1.health 2.health 1.married 1.female 2.race 3.race) title("OLS Estimates") star(* 0.1 * 0.05 ** 0.01)
*Beta Option
regress lwage schooling c.age##c.age ib5.health i.married i.female i.race, vce(robust) beta
*Plot the Coefficient Estimates
regress lwage schooling age ib5.health i.married i.female i.race, vce(robust)
margins, dydx(*)
marginsplot, recast(scatter) yline(0)
margins, dydx(schooling age 1.health 2.health 1.married 1.female)
marginsplot, recast(scatter) yline(0)
*Plot Coefficients using coefplot
ssc install coefplot, replace
help coefplot
coefplot, xline(0)
coefplot, xline(0) keep(schooling age 1.health 2.health 1.married 1.female)
*Compare Estimates from Two Models
regress lwage schooling age ib5.health i.married i.race if female==1, vce(robust)
estimates store Female
regress lwage schooling age ib5.health i.married i.race if female==0, vce(robust)
estimates store Male
coefplot Female Male, xline(0) keep(schooling 1.married 2.race)
coefplot (Female, msymbol(T) mcolor(blue)) (Male, msymbol(S) mcolor(orange)), xline(0) keep(schooling 1.married 2.race) title(The Marginal Effects on Log(wage))
【Some 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...
Introductory Stata:
• Introductory Stata (2022)
Introductory Microeconomics:
• Introductory Microeconomics (2022)
Five Minute Econometrics:
• Five Minute Econometrics (Econometric...
Five Minute Stata:
• Stata Tutorials
【國語Mandarin】現實生活中的經濟學:
• 【Mandarin國語】現實生活中的經濟學
【粵語Cantonese】現實生活中的經濟學:
• 【Cantonese粵語】現實生活中的經濟學
【粵語Cantonese】微觀經濟學基礎:
• 粵語Cantonese微觀經濟學基礎2022
【國語Mandarin】五分鐘計量經濟學:
• 【Mandarin國語】五分鐘計量經濟學(計量經濟學輔導)
【粵語Cantonese】五分鐘計量經濟學:
• 【Cantonese粵語】五分鐘計量經濟學(計量經濟學輔導)
On the Road:
• On the Road
【Become a Supporter 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...
Смотрите видео Cross-Sectional Models (vce, beta options and coefficient visualization) | Stata Tutorials Topic 48 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dr. Bob Wen (Stata, Economics, Econometrics) 22 Март 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 288 раз и оно понравилось 5 людям.