

      Dear all

      Could someone explain to why weights does not works in lm and glm in the example below?
      Thanks in advance, Roseli.

      
       function(model){
   
        www<-fitted(model)
        lm(formula(model),weights=www)

       }

       The message error is: Error in eval(expr,envir,enclos): object "www" not found.


       

	[[alternate HTML version deleted]]


