[R] Proof for computing sums of squares

2011-01-03 Thread Ethan Arenson
Hi. I know that R computes sums of squares based on the diagonal of t(Q) %*% y %*% t(y) %*% Q, where Q comes from the QR-decomposition of the model matrix. Does anyone know where I can find a proof for this result? All Best and Happy New Year, Ethan [[alternative HTML version

[R] How does R compute sums of squares?

2010-12-13 Thread Ethan Arenson
Consider the following missing data problem: y = c(1, 2, 2, 2, 3) a = factor(c(1, 1, 1, 2, 2)) b = factor(c(1, 2, 3, 1, 2)) fit = lm(y ~ a + b) anova(fit) Analysis of Variance Table Response: y Df Sum Sq Mean SqF valuePr(F) a 1 0.8 0.8 1.3637e+33 2.2e-16

[R] Using Windows Tahoma Font for Graphics Text

2010-10-20 Thread Ethan Arenson
Hi. I want to use the text() command to produce graphics text in the (Windows) font Tahoma, but I don't know how to do this. I appreciate any suggestions/ideas you may have. All Best, Ethan [[alternative HTML version deleted]] __