[R] WLS in R

From: Karabi Sinha <karabi_at_uic.edu>
Date: Fri 19 May 2006 - 09:26:30 EST

Can anyone offer any help with coding the following in R?

I want to find (and store) Weighted Least Squares estimates of the regression parameters for the following model:

z_i = beta_0 + beta_1.x_i + e_i; i=1,2,...,m

where e ~ N[0, 1/(ni.pi.(1-pi))], sum(ni)=n

and pi = exp(beta_0+beta_1.x_i)/[1+exp(beta_0+beta_1.x_i)].

Any help on this will be greatly appreciated.

Sincerely,

Karabi Sinha, Ph.D.
Assistant Professor of Biostatistics
Division of Epidemiology and Biostatistics University of Illinois at Chicago
1603 W Taylor, Rm 951
Chicago, IL 60612
Phone: (312) 355-3611
Fax : (312) 996-0064



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 19 09:30:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 19 May 2006 - 16:10:21 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.