Skip to content
Prev 311038 / 398506 Next

about lm

On 16-11-2012, at 20:42, Sonia Amin wrote:

            
Your ve and su are in the dataframe "data". (Don't use data as name for R objects; it is a builtin function).
They are not in the environment from which lm is called (in this case probably the  global environment).

You haven't specified that ve and su are in dataframe "data".
So 

?lm

and look at the description of the "data" argument in the section "Arguments".

lm(ve~su, data=data)

should work.

Berend