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

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

2011-06-28 Thread Daniel Malter
You can specify the weights=... argument in the lm() function as vector of weights, one for each observation. Should that not do what your are trying to do? HTH, Daniel -- View this message in context: http://r.789695.n4.nabble.com/a-Weighted-Least-Square-Model-for-a-Binary-Outcome-tp3631551p363

[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