Errata for An Introduction to Stata Programming, Second Edition

The errata for An Introduction to Stata Programming, Second 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.

(1) Chapter 3, p. 41, line 7
rowmean(x1,x2,x3) .... rowmean(x1 x2 x3) ....
(1) Chapter 3, p. 48, footnote 5
We could also apply this condition as if pop < 0, taking advantage .... We could also apply this condition as if pop < ., taking advantage ....
(1) Chapter 4, p. 68, Stata code at the bottom
foreach v of varlist child1-child12 {
    local nschool "`nschool' + inrange(`v', 6, 18)"
}
generate byte nschool = `nschool'
generate byte anyschool = nschool > 0
local nschool 0
foreach v of varlist child1-child12 {
    local nschool "`nschool' + inrange(`v', 6, 18)"
}
generate byte nschool = `nschool'
generate byte anyschool = nschool > 0