Re: [Rd] Suggest patch for princomp.formula and prcomp.formula

2006-03-27 Thread Berwin A Turlach
G'day Brian, > "BDR" == Prof Brian Ripley <[EMAIL PROTECTED]> writes: BDR> The proposed fix regretably will not work, since one can do BDR> things like BDR> library(MASS) BDR> prcomp(~ dist + dist:climb, hills) Yes, I had the impression that this would work with the current v

Re: [Rd] Suggest patch for princomp.formula and prcomp.formula

2006-03-26 Thread Prof Brian Ripley
I would argue this is a bug in model.frame(), but it seems that it is S-compatible. That is, variables excluded by - appear in the model frame even though they do not really appear in the simplified formula. (I suppose the rationale is that - need not always interpreted as deletion.) The prop

[Rd] Suggest patch for princomp.formula and prcomp.formula

2006-03-25 Thread Berwin A Turlach
Dear all, perhaps I am using princomp.formula and prcomp.formula in a way that is not documented to work, but then the documentation just says: formula: a formula with no response variable. Thus, to avoid a lot of typing, it would be nice if one could use '.' and '-' in the formula, e.g.