Thanks for pointing this out, Ian. A corrected solution set has been posted. Note that
the point of PS7 was to make you appreciate Zelig -- I sure did when I was done writing up
the solution set. 8)
----- Original Message -----
From: Ian Yohai
To: 'Olivia Lau'
Sent: Friday, December 03, 2004 5:23 PM
Subject: solution set 7 q's
Olivia:
Sorry to bother you. I just had a few notes on solution set 7.
On Question 1 (c), I think the FD values for COOP 3-> 4 are incorrect, should be
something like 0.21 for the mean first difference, rather than a negative number, and
different values for the CIs. When I ran your code, that is what I got, so it might have
just been a transfer error.
Also on 1 (c), I think the code had wrong values for the interaction term for the TARGET
scenarios. Median(COOP) = 1, so COOP*TARGET should be 1*1, 1*2, 1*3, which equals 1, 2,
3 and not 2,4,6.
Finally, on question 2 (c) (2), I think you have plotted scenarios (1) and (3), rather
than scenarios (2) and (3), as PRESINC=1 in both cases in your code. Granted, this makes
for a better comparison, but differs from the way the question was asked.
Thanks,
Ian
Show replies by date
Dear comrades,
Suppose you have constructed a n * k table, then follow the steps below to LaTeX
the table instantly:
# Download "Hmisc" package and run
library(Hmisc)
# Download "Design" package and run
library(Design)
# LaTeX Table 1
latex(table, file="")
This is so powerful unless you LaTeX a 1*2 table!
Paul.