[R] setting options when using eval

2004-02-20 Thread Dominic Barraclough
Hi All, I'm using a call to eval to evaluate a linear model, however, I have found that despite calling options (contrasts=c(contr.sum, contr.poly)) prior to evaluation, my model factors are coded using the indicator coding associated with the contr.treatment contrast option As an inelegant

[R] question about how summary.lm works

2004-01-12 Thread Dominic Barraclough
Hi, While exploring how summary.lm generated its output I came across a section that left me puzzled. at around line 57 R - chol2inv(Qr$qr[p1, p1, drop = FALSE]) se - sqrt(diag(R) * resvar) I'm hoping somebody could explain the logic of these to steps or alternatively point me in the