[R] lm() function to get coefficients doesn`t work
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Jun 17 09:23:32 CEST 2002
Kenneth Cabrera <krcabrer at epm.net.co> writes:
> Frithjof Weinert wrote:
>
> > Hi,
> >
> >to get the residuals and coefficients I did the following:
> >
> >kurse <- read.table("kurse.txt" header=T)
> >
> >the data:
> >
> > index bmw mru rwe vow kar sie bas
> >1 159,70 74,18 338,21 89,03 110,30 141,23 178,53 67,97
> >2 160,76 73,46 343,66 89,38 110,30 142,66 180,45 68,30
> >3 162,45 74,18 349,12 91,54 108,54 146,22 183,12 68,85
> >4 162,18 72,74 349,12 92,20 106,43 144,80 181,75 68,52
> >5 161,64 72,98 340,93 91,43 101,87 144,08 181,41 68,30
> >
> Modify the data base "kurse.txt", change "," for ".", R is taking each
> variable
> as a factor (character variable).
>
> Use" ." (dot) for decimal separation, not "," (comma)
...or set dec="," in read.table.
--
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
mailing list