Re: [R] survey weights

2005-09-04 Thread Thomas Lumley
On Sat, 3 Sep 2005, A Das wrote: Hi all, I've been trying to get a large (12mb) Stata survey database into R. I managed that, but when I attach survey weights, something goes wrong. The error message is: object dchina not found. Here's the script: If that is the *first* message then

Re: [R] survey weights

2005-09-04 Thread A Das
Thanks, Thomas. Yes, that's exactly what happened: the warnings came first after data(China), and then after dchina-svydesign... So the design object isn't being produced? The dataset is very large, and the weights were already set in Stata before importing. Would either of those cause

Re: [R] survey weights

2005-09-04 Thread Thomas Lumley
On Sun, 4 Sep 2005, A Das wrote: Thanks, Thomas. Yes, that's exactly what happened: the warnings came first after data(China), and then after dchina-svydesign... So the design object isn't being produced? The dataset is very large, and the weights were already set in Stata before

Re: [R] survey weights

2005-09-04 Thread A Das
Just: missing values in object. That would imply the object was created. But then I write dchina, and it says object dchina not found. -Bobby --- Thomas Lumley [EMAIL PROTECTED] wrote: On Sun, 4 Sep 2005, A Das wrote: Thanks, Thomas. Yes, that's exactly what

Re: [R] survey weights

2005-09-04 Thread Thomas Lumley
On Sun, 4 Sep 2005, A Das wrote: Just: missing values in object. That would imply the object was created. But then I write dchina, and it says object dchina not found. No, it would not imply the object was created. If it was an error message (rather than a warning) the object would not have

Re: [R] survey weights

2005-09-04 Thread A Das
That worked. Many thanks, Thomas. -Bobby --- Thomas Lumley [EMAIL PROTECTED] wrote: On Sun, 4 Sep 2005, A Das wrote: Just: missing values in object. That would imply the object was created. But then I write dchina, and it says object dchina not found.

[R] survey weights

2005-09-03 Thread A Das
Hi all, I've been trying to get a large (12mb) Stata survey database into R. I managed that, but when I attach survey weights, something goes wrong. The error message is: object dchina not found. Here's the script: library(car) library(foreign) library(survey) China - read.dta(C:/final07c2.dta)