Skip to content

R

2 messages · mohammad sahebhonar, (Ted Harding)

#
On 20-Sep-07 08:45:43, mohammad sahebhonar wrote:
There are two points to investigate in your description above.

1. You describe your datafile as having three columns "y", "a", "x",
   but in your formular you wrote "A+x". If the column-name is "a"
   then "A+x" will not work since "a" and "A" are different names.
   Either the column name in the datafile really is "A", and
   there is no problem (you simply typed it wrong above),
   or it is really "a" and you should use "y ~ a+x" (see below).

2. The way to specify a model formula to glm (also lm, etc.)
   is to write the formula as

      y ~ A+x  (or y ~ a+x, depending on which one is correct)

   Do not use "y = a+x"!

Best woishes,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 20-Sep-07                                       Time: 10:50:24
------------------------------ XFMail ------------------------------