Re: [R] sampling weights for multilevel models

2012-06-10 Thread Tamara
Thank you very much, Thomas! As I need to estimate the variance components, I will most probably have to switch from R to HLM or Mplus to apply different weights to different levels. Although I prefer R in general. -- View this message in context: http://r.789695.n4.nabble.com/sampling-weights-

Re: [R] sampling weights for multilevel models

2012-06-10 Thread Tamara
Thank you very much, Rui! But I am afraid that I won't be able to use this function for multilevel analysis, as unfortunately I don't see how exactly I will combine it with functions in the R packages for multilevel analysis . -- View this message in context: http://r.789695.n4.nabble.com/samplin

Re: [R] sampling weights for multilevel models

2012-06-10 Thread Thomas Lumley
On Mon, Jun 11, 2012 at 7:00 AM, Tamara wrote: > Dear all, > > I am struggling with a problem which I have been reading on the forums about > and it did not seem to me that there is a precise answer to my question. > However, I still hope there is one. > > I am working with  http://timss.bc.edu/ P

Re: [R] sampling weights for multilevel models

2012-06-10 Thread Rui Barradas
Hello, The link you've posted is to a page that does NOT have a dataset, it has links to other pages. The proper way of posting a data example would be # paste the output of this in a post dput(head(yourdata, 20)) # or 30 Now, if I understand your question, function sample() does have a we

[R] sampling weights for multilevel models

2012-06-10 Thread Tamara
Dear all, I am struggling with a problem which I have been reading on the forums about and it did not seem to me that there is a precise answer to my question. However, I still hope there is one. I am working with http://timss.bc.edu/ PIRLS data and trying to conduct multilevel analysis. Ther