Date: Tue, 18 Mar 2003 17:03:18 -0500
Reply-To: Art@DrKendall.org
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Arthur J. Kendall" <Art@DrKendall.org>
Organization: Social Research Consultants
Subject: Re: n-fold cross validation in SPSS
Content-Type: text/plain; charset=us-ascii; format=flowed
try something like this untested syntax.
if you want N to be 5
compute rangroup= rv.uniform(1,5).
sort cases by rangroup.
split file by rangroup.
Hope this helps.
Art
Art@DrKendall.org
Social Research Consultants
University Park, MD USA
(301) 864-5570
peng jia wrote:
> Hi,
>
> I want to do a N-fold cross validation experiments
> using SPSS. Is that a way to randomly split a given
> dataset into N-subgroups in SPSS?
>
> Thanks in advance!
>
> Peng
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
|