|
|
Yes, that was it. Thank you, Luca Il giorno 25/apr/09, alle ore 18:37, ViAnn Beadle ha scritto: Sure looks to me like you have 39.7 cases for agecat = 1 and 31.3 cases for agecat=2. Frequencies are displayed with no decimal digits From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Luca Meyer Sent: Saturday, April 25, 2009 10:30 AM To: [hidden email] Subject: Issue with weighting (SPSS 17 x Mac) Something weird is happening with my SPSS 17.0.2 x Mac (*) output when I use weighting. I have run this sample syntax: - COMPUTE Gender='Female'. - COMPUTE AgeCategory = trunc(uniform(3)+1). FREQUENCIES VARIABLES=gender AgeCategory. ***create and apply weightvar***. ***to simulate 49 males, 51 females***. - COMPUTE weightvar=49/52. ELSE IF gender = 'Female'. - COMPUTE weightvar=51/48. FREQUENCIES VARIABLES=gender AgeCategory. (font: Programming and Data Management for SPSS ® Statistics 17.0 - page 90) and I get the following output: <--- before weighting ---> gender | | Frequency | Percent | Valid Percent | Cumulative Percent | | | 48 | 48,0 | 48,0 | 48,0 | | | 52 | 52,0 | 52,0 | 100,0 | | | 100 | 100,0 | 100,0 | | | |
AgeCategory Frequency Percent Valid Percent Cumulative Percent 40 40,0 40,0 40,0 31 31,0 31,0 71,0 29 29,0 29,0 100,0 100 100,0 100,0 <--- after weighting ---> gender | | Frequency | Percent | Valid Percent | Cumulative Percent | | | 51 | 51,0 | 51,0 | 51,0 | | | 49 | 49,0 | 49,0 | 100,0 | | | 100 | 100,0 | 100,0 | | | | | | | |
AgeCategory Frequency Percent Valid Percent Cumulative Percent 40 39,7 39,7 39,7 31 31,3 31,3 71,0 29 29,0 29,0 100,0 100 100,0 100,0 Look at the second AgeCategory Frequency: it is unchanged. But now look at the corresponding Percent column: it does not correspond. Can someone help me to understand what's going on here? (*) For the time being I am using the trial version I have downloaded from the SPSS support site
|