search for: formularesp

Displaying 1 result from an estimated 1 matches for "formularesp".

Did you mean: formulaes
2003 Feb 17
2
Call to glm inside a function
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...