Hello,

I want to call glm inside a function. In the first lines of code I build the
weights, the formula, ... and then I call glm with the following command:
    glm(formularesp, data=data, family=familyresp,
weights=eval(data$weights)

My problem is that the fitting proccess is performed just like if
weights=NULL, even if my weights are not equals to 1. I've performed some
return() command before this glm call to check the value of each argument,
and everything seems OK.

Please, help me to understand why the code bypass my weighting instruction.

Regards

Isabelle

______________________________________________
[EMAIL PROTECTED] mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to