[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: random sample within strata
From: |
Ben Pfaff |
Subject: |
Re: random sample within strata |
Date: |
Mon, 16 Feb 2015 15:12:24 -0800 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Feb 16, 2015 at 11:36:16PM +0100, ftr wrote:
> Hi,
>
> I have the following problem: I have a large multi country data file from
> which I want to export a random sample of about 20% of the cases of each
> country.
>
> Can I achieve this with the following temporary and the sample commands ?
>
> SORT CASES by country.
> SPLIT FILE by country.
> TEMP.
> Sample .2 .
> COMPUTE selection = 1.
> FREQ selection.
> SPLIT FILE OFF
I think that ought to work.