Decimal places in output

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Decimal places in output

Catherine
Hi,

Does anyone have any suggestions for how to change the default number of decimal places in output tables? In particular, for the output of Chi square analysis, in the crosstabulation table, I want to increase the number of decimal places of the percentage values to 2.

I’m aware that for some analyses the output gives the number of decimal places in the Variable View plus 2, so increasing the decimal places set in the Variable View can increase those in the output, but this does not work for Chi square tables.

Also, I know that I can double click the table in the output, highlight the column, click cell properties and change the number of decimal places that way.

But is there a quicker way to do this for ALL tables in the output, or change the default setting?

Thanks for any suggestions.
Catherine
Reply | Threaded
Open this post in threaded view
|

Re: Decimal places in output

Jon K Peck
The number of decimals displayed is generally based on the format of the input variables and the type of statistic, but for a chi-squared, you can't affect this via the variable format.

There are two ways to automate a precision change.  The most direct is to create an autoscript for the particular table types of interest and change the precision in that.  This could be done with either Basic or Python.

The second way is to use the SPSSINC MODIFY TABLES extension command for this.  It could be run after each crosstab where you want to change this, or it could be run to process all tables of the appropriate type.  I'm not sure what that is in this case, since the crosstabs Chi-squared table already shows 3 decimals, but the principle is the same.

Regards,

Jon Peck (no "h") aka Kim
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        Catherine <[hidden email]>
To:        [hidden email]
Date:        08/03/2012 09:10 AM
Subject:        [SPSSX-L] Decimal places in output
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi,

Does anyone have any suggestions for how to change the default number of
decimal places in output tables? In particular, for the output of Chi square
analysis, in the crosstabulation table, I want to increase the number of
decimal places of the percentage values to 2.

I’m aware that for some analyses the output gives the number of decimal
places in the Variable View plus 2, so increasing the decimal places set in
the Variable View can increase those in the output, but this does not work
for Chi square tables.

Also, I know that I can double click the table in the output, highlight the
column, click cell properties and change the number of decimal places that
way.

But is there a quicker way to do this for ALL tables in the output, or
change the default setting?

Thanks for any suggestions.
Catherine



--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Decimal-places-in-output-tp5714575.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
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