Table 3.2, page 37; figure 3.1, page 39 and table 3.3, page 38. use https://stats.idre.ucla.edu/stat/stata/examples/smss/murder1, clear /* raw frequency distribution */ tabulate murder murder rate | Freq. Percent Cum. ————+———————————–…
Read More
Search Results for: stata
Statistical Methods for the Social Sciences by Alan Agresti and Barbra Finley Chapter 4: Probability Distributions | Stata Textbook Examples
The Stata commands ztable, zdemo, zdemo2, ztail and zcalc are available from ATS and can be downloaded over the Internet using the search command (see How can I use the…
Read More
Statistical Methods for the Social Sciences by Alan Agresti and Barbra Finley Chapter 5: Statistical Inference: Estimation | Stata Textbook Examples
Example 5.5, page 143; table 5.2, page 143. use https://stats.idre.ucla.edu/stat/stata/examples/smss/books, clear display (54+1)/2-sqrt(54) 20.151531 display (54+1)/2+sqrt(54) 34.848469 sort p list in 20 c p 20. 1 11 list in 35…
Read More
Statistical Methods for the Social Sciences by Alan Agresti and Barbra Finley Chapter 6: Statistical Inference: Significance Tests | Stata Textbook Examples
Figure 6.3, page 161. ztail and zdemo are available from ATS and can be downloaded over the Internet using the search command (see How can I use the search command…
Read More
Statistical Methods for the Social Sciences by Alan Agresti and Barbra Finley Chapter 7: Comparison of Two Groups | Stata Textbook Examples
Some general comments. Because many of the examples in this chapter are computed from summary statistics we will be making extensive use of Stata’s immediate commands. Each of these commands…
Read More
Statistical Methods for the Social Sciences by Alan Agresti and Barbra Finley Chapter 8: Analyzing Association Between Categorical Variables | Stata Textbook Examples
Statistical Methods for the Social Sciences by Alan Agresti and Barbra Finley Chapter 9: Linear Regression and Correlation | Stata Textbook Examples
Table 9.1, page 302. use https://stats.idre.ucla.edu/stat/stata/examples/smss/crime, clear list sid state crime murder pctmetro pctwhite pcths poverty single 1. 1 ak 761 9 41.8 75.2 86.6 9.1 14.3 2. 2 al…
Read More
Sampling of Populations by Levy and Lemeshow | Stata Textbook Examples
The examples below use Stata 9. If you are using Stata versions 7 or 8, please see this page. NOTE: If you want to see the design effect or the…
Read More
Visualizing Data by William S. Cleveland Chapter 1: Introduction | Stata Textbook Examples
page 4, Figure 1.1 use “c:vizdatabarley.dta”, clear drop rownames reshape wide yield, i(variety site) j(year) (note: j = 1931 1932) Data long -> wide —————————————————————————– Number of obs. 120 ->…
Read More
Visualizing Data by William S. Cleveland Chapter 2: Univariate Data | Stata Textbook Examples
page 16, Figure 2.1 use "c:vizdatasinger.dta”, clear * panel 1 quantile height if voice_part == “Soprano 2”, title(“Soprano 2”) /// xtitle(“”) ytitle(“”) xlabel(0 .5 1, grid) ylabel(60(5)75, angle(0)) /// xmtick(.25…
Read More
