Re: [R] problem with 'svyby' function from SURVEY package

2010-06-03 Thread Thomas Lumley
On Thu, 3 Jun 2010, Roni Kobrosly wrote: Hello, I'm using a complex survey dataset and my goal is to simply spit out a bunch of probability-weighted outcome variable means for the different levels of covariate. So I first define the structure of the study design (I'm using the CDC's NHANES d

[R] problem with 'svyby' function from SURVEY package

2010-06-02 Thread Roni Kobrosly
Hello, I'm using a complex survey dataset and my goal is to simply spit out a bunch of probability-weighted outcome variable means for the different levels of covariate. So I first define the structure of the study design (I'm using the CDC's NHANES data): dhanes <- svydesign(id=~PSU, strat=~S