标题: weight statement in proc logistic or proc genmod [打印本页] 作者: shiyiming 时间: 2009-2-8 16:33 标题: weight statement in proc logistic or proc genmod weight statement in proc logistic or proc genmod
Hi,
I got confused about when we should include the weight statement in the two procedures for a binomial response.
From the SAS help document example for Proc logistic, it doesn't use the weight statement for the events/trials "model" specification.
But under GLM framework, "For the binomial distribution, the response is the binomial proportion Y = events/ trials (y=r/n). VAR(Y) = u*(1-u)/n. The variance function is v(u) = u*(1-u), and the binomial trials parameter n is regarded as a weight w." This means that we should use the trials (n) as the weight. This makes sense since variance of the response varies by n (number of trials).
But if I use the "weight" statement in the procedure, the parameter estimates are quite different.
proc logistic data=ingots;
model r/n=Heat Soak;
weigth n;
run;
Could someone please help me explain this? Whether or when should I use weight for binomial response?