Re: [R] sample weights in ols

2011-05-11 Thread jour4life
Thanks so much. I really appreciate it. Carlos On 5/11/2011 3:18 PM, Thomas Lumley-2 [via R] wrote: > On Thu, May 12, 2011 at 2:43 AM, jour4life <[hidden email] > > wrote: > > I have a follow up question. When using svyglm, it does not matter > that I am > > not using survey design and only wei

Re: [R] sample weights in ols

2011-05-11 Thread Thomas Lumley
On Thu, May 12, 2011 at 2:43 AM, jour4life wrote: > I have a follow up question. When using svyglm, it does not matter that I am > not using survey design and only weights? > In other words, > > fit<-svyglm(y~x1+x2+...xk,data=dataset,weights=weightvariable) > > Or am I going to have to construct a

Re: [R] sample weights in ols

2011-05-11 Thread jour4life
I have a follow up question. When using svyglm, it does not matter that I am not using survey design and only weights? In other words, fit<-svyglm(y~x1+x2+...xk,data=dataset,weights=weightvariable) Or am I going to have to construct a survey design variable, using only the weight variable? Than

Re: [R] sample weights in ols

2011-05-10 Thread jour4life
On 5/10/2011 3:12 PM, Thomas Lumley-2 [via R] wrote: > On Tue, May 10, 2011 at 2:50 PM, jour4life <[hidden email] > > wrote: > > > Hello all, > > > > I am wondering if there is a way to specify sampling weights for an ols > > model using sample weights. > > > > For instance, right now, my code is:

Re: [R] sample weights in ols

2011-05-10 Thread Thomas Lumley
On Tue, May 10, 2011 at 2:50 PM, jour4life wrote: > Hello all, > > I am wondering if there is a way to specify sampling weights for an ols > model using sample weights. > > For instance, right now, my code is: > > fit.ex<-lm(y~x1+x2+x3+...xk,data=dataset,weights=weightvariable.) > summary(fit.ex)

[R] sample weights in ols

2011-05-09 Thread jour4life
Hello all, I am wondering if there is a way to specify sampling weights for an ols model using sample weights. For instance, right now, my code is: fit.ex<-lm(y~x1+x2+x3+...xk,data=dataset,weights=weightvariable.) summary(fit.ex) But, there is almost no difference in the coefficients nor standa