[R] problem w/ lm() ?
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Jan 13 18:51:03 CET 1999
"Francisco Cribari" <cribari at de.ufpe.br> writes:
> Any thoughts on the following? Am I missing something? [I am running R
> for Windows 0.63.1 on a Win NT 4.0 (workstation, sevice pack #4) box.]
> Thanks. FC.
> > data(women)
> > names(women)
>  "height" "weight"
> > summary(lm(weight ~ height, data = women))
> lm(formula = weight ~ height, data = women)
> Min 1Q Median 3Q Max
> -1.7333 -1.1333 -0.3833 0.7417 3.1167
> Error: binary operator applied to invalid types
This works on Unix 0.63.1, so no, you're not missing anything. Unless
you have something important redefined when you load your workspace.
To help debugging in, perhaps you could try something like:
hw.sum <- summary(lm(weight ~ height, data = women)) # avoids printing
hw.sum # I believe this provokes the error
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
r-help 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-help-request at stat.math.ethz.ch
More information about the R-help