[R] package sampling, function strata

2012-02-01 Thread Elena Guijarro
Dear all, I have to select 122 stratified random samples from a population of 3900 cells. I have 41 strata and I have to draw a different number of samples from them(between 2 and 8). I have tried to apply the funtion strata following the instruction in the manual: strata(dataframe,

Re: [R] package sampling, function strata

2012-02-01 Thread Thomas Lumley
On Wed, Feb 1, 2012 at 11:18 PM, Elena Guijarro elena.guija...@vi.ieo.es wrote: Dear all, I have to select 122 stratified random samples from a population of  3900 cells. I have 41 strata and I  have to draw a different number of samples from them(between 2 and 8). I have tried to apply the

Re: [R] package sampling

2012-01-08 Thread Thomas Lumley
On Fri, Jan 6, 2012 at 5:30 PM, blueberry1228 blueberry1...@hotmail.com wrote: After trouble shooting for a long time, believe me it's  miserable, I finally found: There's conflict between Hmisc and sampling packages. I suggest if strata pops unusual error like this, you should check if your

Re: [R] package sampling

2012-01-05 Thread blueberry1228
Hi, I would like to attach my answer although this question has been posted here for more than a year. I believe some people may meet the same problem. I use sampling package to do the stratified sampling as well, using strata() function. And everything goes well before I add another library:

Re: [R] package sampling

2010-12-13 Thread Uwe Ligges
Which version of R and sampling? Where is the reproducible code? Uwe Ligges On 11.12.2010 16:16, andrija djurovic wrote: Hi R users. I have a problem with function strata in sampling packages. st0 = strata(dom, stratanames=stratas, size=sample.size, method=systematic,pik, FALSE) Error in

[R] package sampling

2010-12-11 Thread andrija djurovic
Hi R users. I have a problem with function strata in sampling packages. st0 = strata(dom, stratanames=stratas, size=sample.size, method=systematic,pik, FALSE) Error in sort.list(y) : 'x' must be atomic for 'sort.list' Have you called 'sort' on a list? In previous version of R 2.9.1 and