model.frame mangles time series (PR#121)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
18 Feb 1999 19:14:03 +0100


Peter Dalgaard BSA <p.dalgaard@biostat.ku.dk> writes:

> That can be fixed by a one-line change to [.factor :
> 
> > contrasts(df[1:3,]$x)
>           .L   .Q         .C
> 1 -0.6708204  0.5 -0.2236068
> 2 -0.2236068 -0.5  0.6708204
> 3  0.2236068 -0.5 -0.6708204
> 4  0.6708204  0.5  0.2236068
> 
> I suspect that is the correct solution.

A quick check shows that S does the same, ergo: change committed.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._