Yahoo! Mail Now Faster and Cleaner. Experience it today! |
|
Eins Bernardo wrote:
> ... > However, either method is tedious since I have to do use the syntax > 55 times because I have 55 categorical variables with 5 categories each. > > If there is no other way then I have to use either. > Why don't you try to write a simple macro that cycles through the 55 categorical variables? Even if macro language is becoming obsolete (thanks to Python) it is still useful for those simple tasks. Something like this (untested, might need some bug corrections): DEFINE MYMACRO(list=!CMDEND). DO !I !IN (!list). SORT CASES BY !I . SPLIT FILE LAYERED BY !I . NPAR TEST /CHISQUARE=YesNoVariableName /EXPECTED=EQUAL. !DOEND. !ENDDEFINE. MYMACRO list= v1 v2 v3 v4 v5 v6 v7....... Marta GG -- For miscellaneous SPSS related statistical stuff, visit: http://gjyp.nl/marta/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
I'm sure this is buried somewhere in the (RTF) Manual. I have a
decimal variable that I want to display on the axis of a chart as percentages. That is, I want ".xxx" to display as "xx.x%"--with the percent sign. It's odd, because in a table, one of the formats is a percentage--even if displaying a decimal as a percentage gives a very small percentage (not multiplied by 100!). I thought about setting up a display variable by multiplying by 100, converting to a string, and then concatenating "%". That doesn't work for me. I'm using v. 17.0.2 in Windows XP SP2. What am I doing wrong? TIA Gary --- Gary Rosin [hidden email] "The dogs on main street howl, 'cause they understand, ... " --Bruce Springsteen ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
