Re: [R] a Weighted Least Square Model for a Binary Outcome

2011-06-29 Thread Vivian Zhuang
Hi Daniel, Thanks for your reply. The weight is dependent on the estimated E(Y). In other words, I need R to estimate the beta coefficients and weights simultaneously, like what is performed in gls(). However, the weight form allowed in gls() is different from what I want. In SPSS, we can simply

[R] a Weighted Least Square Model for a Binary Outcome

2011-06-28 Thread Vivian Zhuang
Dear R Users, I am new to the mailing list. I posted this message about two hours ago but did not receive it through the list, so I am posting it again. Sorry for duplicates. I would like to use R to fit a Weighted Least Square model for a binary outcome, say Y. The model is the one widely used

[R] Weighted Least Square Model for a Binary Outcome

2011-06-28 Thread Vivian Zhuang
Dear R Users, I would like to use R to fit a Weighted Least Square model for a binary outcome, say Y. The model is the one widely used for a binary dependent variable when the logistic model has not been proposed. Does anyone know how to specify the weight as the square root of 1/(E(Y)(1-E(Y)) i

[R] a Weighted Least Square model for a binary response variable

2011-06-25 Thread Vivian Zhuang
Dear R Users, I would like to use R to fit a Weighted Least Square model for a binary response variable, say Y. The model is actually the model widely used for a binary dependent variable when the logistic model has not been invented. The weight is 1/(E(Y)(1-E(Y)). Could someone help me out? Tha