From p.dalgaard@biostat.ku.dk  Thu Dec 18 10:31:06 1997
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 18 Dec 1997 11:31:06 +0100
Subject: model.matrix(.) and all that
In-Reply-To: Martin Maechler's message of Thu, 18 Dec 1997 09:10:54 +0100
References: <199712180810.JAA02547@sophie.ethz.ch>
Message-ID: <x2pvmvdjth.fsf@blueberry.kubism.ku.dk>

Martin Maechler <maechler@stat.math.ethz.ch> writes:

> 
> Maybe just a minor thing,
> but since we are aiming for  S compatibility, here :
> 
>        R> x_ 1:5
>        R> model.matrix(x ~ x)
>        Error: length of namelist must equal dims
> 
> whereas in  S,
> 
> 	model.matrix(x ~ x)  ===  model.matrix(x ~ 1)

... where I would have expected model.matrix(~x). Does this have any
untoward consequences for delete.response and all that?

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


model.matrix(.) and all that
Peter Dalgaard BSA