Figure 5.1, page 146. NOTE: The graph does not match up exactly. use https://stats.idre.ucla.edu/stat/stata/examples/rwg/crfe, clear graph twoway (scatter crfe depth) (mband crfe depth, band(5)), /// xlabel(0(5)25) ylabel(0(2)10) xline(5 10 15…
Read More
Search Results for: stata
Regression with Graphics by Lawrence Hamilton Chapter 5: Fitting Curves | Stata Textbook Examples
Rwgstata6
Regression with Graphics by Lawrence Hamilton Chapter 6: Robust Regression | Stata Textbook Examples
Figure 6.1, page 184. use https://stats.idre.ucla.edu/stat/stata/examples/rwg/airpol, clear gen lnhc = ln(hc) label variable lnhc "natural log of hydrocarbon pollution potential" regress mort lnhc Source | SS df MS Number of…
Read More
Rwgstata7
Regression with Graphics by Lawrence Hamilton Chapter 7: Logit Regression | Stata Textbook Examples
Figure 7.1, page 218. use https://stats.idre.ucla.edu/stat/stata/examples/rwg/toxic, clear regress close lived Source | SS df MS Number of obs = 153 ———+—————————— F( 1, 151) = 13.65 Model | 3.11094265 1…
Read More
Rwgstata8
Regression with Graphics by Lawrence Hamilton Chapter 8: Principal Components and Factor Analysis | Stata Textbook Examples
Table 8.1, page 253. use https://stats.idre.ucla.edu/stat/stata/examples/rwg/basins, clear (Hicks et al. (1990)) gen logro=log10(runoff) gen logpre=log10(precip) gen logglac=log10(glacier+1) gen logarea=log10(area) egen zlogro=std(logro) egen zlogpre=std(logpre) egen zlogglac=std(logglac) egen zlogarea=std(logarea) list basin zlogro…
Read More
Regression with Graphics by Hamilton Download Stata Data Files
This page was adapted from a page at the Stata Bookstore page. We thank Stata for their permission to adapt and distribute this page via our web site. We are…
Read More
