Errata for A Gentle Introduction to Stata, 4th Edition

The errata for A Gentle Introduction to Stata, Fourth Edition are provided below. Click here for an explanation of how to read an erratum. Click here to learn how to determine the printing number of a book.

(all) Chapter 7, p. 178, fifth line of second paragraph
... power twomeans 35 37, sd1(10) sd2(10) power(0.80) ... ... power twomeans 35 37, sd1(10) sd2(15) power(0.80) ...
(all) Chapter 10, p. 269–270
The variable env_con (environmental concern) was accidentally reverse coded in ops2004.dta. Thus the variable has a higher score for people who have less environmental concern. This makes the coefficients on page 270 have a sign that is opposite of what they should have. The remaining portion of the chapter is correct in terms of procedures and Stata code. The interpretation is correct if the coding error is ignored and we assume that higher values of env_con correspond to more environmental concern.
(all) Chapter 14, p. 440, question 1
Using gss2002_chapter10.dta, fit the model using all the variables except for polviews.
  1. Do this using the regress command.
  2. Do this using the sem command and SEM Builder.
  3. List the commands as you would enter them in a do-file.
You are interested in the socioeconomic status (sei) of adult children. You have the following predictors: male, mother's education (maeduc), father's education (paeduc), hours worked last week (hrs1), and education (educ). Use gss2002_chapter10.dta, and recode the variable, sex, as male (1 male; 0 female).
  1. Fit this model using regress, and estimate standardized coefficients.
  2. Do the same using the sem command and SEM Builder.
  3. List the commands as you would enter them in a do-file.

© Copyright 2002–2014 StataCorp LP  |  webmaster@stata-press.com  |    What’s new?  |  Terms of use  |  Privacy notice  |  Visit www.stata.com