Printing the data set confirms that the indicator variables have been constructed correctly.
(It is always a good idea to print your data after recoding variables.) By the way,
F
obs
=94.58 in both PROC REG and PROC GLM output, which is not shown. Go ahead
and try this code yourself.
You can use the “Boolean trick” in
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.