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 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
