filmov
tv
Introductory Stata 9: Extended generate (egen)
![preview_player](https://i.ytimg.com/vi/2unR-nxRGIc/sddefault.jpg)
Показать описание
In this video, we will look at the "extended generate" command in Stata. The "egen" command is a more powerful version of the generate command, making some complicated jobs easier to accomplish.
**********************************
*9. Extensions to generate *
**********************************
cd "/Users/bobwen/Documents/2022 Youtube Teaching/Introductory Stata/9. Extensions to generate/"
capture log close
help egen
summarize
*Generate standard deviation of birth weights
egen bw_sd=sd(bwghtlbs)
summarize bwghtlbs bw_sd
*Compute the rowmean and rowmax for parents' education
egen pareduc=rowmean(fatheduc motheduc)
browse fatheduc motheduc pareduc
egen pareduc2=rowmax(fatheduc motheduc)
browse fatheduc motheduc pareduc2
*Cut birth weights into 10 equal deciles
egen bw_decile=cut(bwghtlbs), group(10)
tabulate bw_decile
log close
#egen #Stata
**********************************
*9. Extensions to generate *
**********************************
cd "/Users/bobwen/Documents/2022 Youtube Teaching/Introductory Stata/9. Extensions to generate/"
capture log close
help egen
summarize
*Generate standard deviation of birth weights
egen bw_sd=sd(bwghtlbs)
summarize bwghtlbs bw_sd
*Compute the rowmean and rowmax for parents' education
egen pareduc=rowmean(fatheduc motheduc)
browse fatheduc motheduc pareduc
egen pareduc2=rowmax(fatheduc motheduc)
browse fatheduc motheduc pareduc2
*Cut birth weights into 10 equal deciles
egen bw_decile=cut(bwghtlbs), group(10)
tabulate bw_decile
log close
#egen #Stata
Introductory Stata 9: Extended generate (egen)
Introductory Stata 52: Data Generating Process and Simulation
Introductory Stata 6: Weights
Introductory Stata 16: Operation within Groups (bysort, _n, _N)
Introductory Stata 41: Graphs For Two Continuous Variables (scatterplots)
Introductory Stata 38: Graphs For Single Continuous Variable (Box plot)
2 Minutes on Stata's Egen versus Gen Function
Introductory Stata 55: Panel Data Structure (reshape, xtset)
Stata Basics 1: Summary Statistics (English version)--summarize, tabulate, tabstat, etc
Introductory Stata 43: Graphs For Two Continuous Variables (Line plots)
Introductory Stata 51: Marginsplots after IV Estimation
Introductory Stata 24: Estimates Report (estimates table, esttab)
Introductory Stata 49: Sample Selection (Heckman)
Introductory Stata 23: Linear Hypothesis Testing (test, lincom)
Introductory Stata 42: Graphs For Two Continuous Variables (Best fit line)
Intro 5: Creating New Variables in Stata
New in Stata 15: Extended regression models (ERMs)
Make Your Stata Life Easier With 4 Tips on Using Local Macros
Data Generating Processes: Stata Simulation
STATA Introduction
Stata ja muuttujien muokkaaminen
Using Data a Dictionary to Import Fixed Field Data Into Stata
Introductory Stata 11: Convert String Var to Numeric Var
STATA Class 3-6: tostring/destring
Комментарии