Tony: Perfect. Thanks, martin
From: SPSSX(r) Discussion [mailto:[hidden email]]
On Behalf Of Anthony Babinec
Sent: Wednesday, February 20, 2013 11:25 AM
To: [hidden email]
Subject: FW: How to create a large data set with varying proportions for different categories
Martin,
try this.
input program.
data list / count 1-4.
loop #i=1 to count.
reread.
data list / x 6.
leave count.
end case.
end loop.
end input program.
begin data.
1300 1
1400 2
1300 3
2400 4
2000 5
1600 6
end data.
From: SPSSX(r) Discussion [[hidden email]]
On Behalf Of Martin Sherman
Sent: Wednesday, February 20, 2013 10:03 AM
To: [hidden email]
Subject: How to create a large data set with varying proportions for different categories
Dear List: I am in the process of creating a dummy data set of 10,000 cases. The different categories need to be apportioned according to the following weights.
Proportion of 1’s = .13
Proportion of 2’s = .14
Proportion of 3’s = .13
Proportion of 4’s = .24
Proportion of 5’s = .20
Proportion of 6’s = .16
That is, in the end I want to have 1300 1’s, 1400 2’s, 1300 3’s, 2400 4’s, 2000 5’s and 1600 6’s.
If someone knows how to do this without much bother I would appreciate. Thanks, mfs
`
Martin F. Sherman, Ph.D.
Professor of Psychology
Director of Masters Education in Psychology: Thesis Track
Maryland
Department of Psychology
222 B Beatty Hall
4501 North Charles Street
Baltimore, MD 21210
410-617-2417
[hidden email]