turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Deciding the significant figures in output

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-18-2017 12:28 PM

Hello,

When I ran a data using SAS production environment, is there a way I could decide how many significant figure I want to get in my output?

Thank you

Samrita

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-18-2017 01:17 PM

You should be able to decide anything you want. But this question is very vague. You might provide more details of what you are doing and the output requirements.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-18-2017 02:19 PM

Sorry for not being clear about my question. Can I decide on the number of decimal point for the p-value that I get using this test? I am looking for a decimal point of 6 for P-VALUSE for ABS_resid mean.

**roc** **GLM** DATA=Statistic;

CLASS Group;

Model BW=Group;

Output OUT=lEVENE_resid R=resid;

**Run**;

**PROC** **GLM** DATA=Statistic;

CLASS Group;

MODEL BW=Group;

OUTPUT OUT=Levene_resid R=resid;

**RUN**;

**DATA** Lev_resid;

SET Levene_resid;

ABS_resid = ABS(resid);

**RUN**;

**PROC** **GLM** DATA=Lev_resid;

CLASS group;

MODEL ABS_resid=Group;

**RUN**;

Thank you

Samrita

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-18-2017 02:36 PM

The procedure stored the p-value as a decimal value such as 0.0001234567. However, in the ODS table, the p-value is displayed by using the PVALUEw. format. To learn about the PVALUEw. format, see "Formats for p-values and odds ratios in SAS."

If you would like to use a different format (or no format at all), you have two options.

The first option is to use ODS OUTPUT to write a table to a data set. If you don't know the name of the table, read "Find the ODS table names produced by any procedure." Then USE PROC PRINT and the FORMAT statement to display the statistics in the format you prefer.

For example, the following captures and displays the ModelANOVA table in PROC GLM:

```
proc GLM DATA=sashelp.class;
CLASS age;
Model height=age;
ods output modelANOVA=ANOVA;
Run;
proc print data=ANOVA;
format probF PVALUE8.6;
run;
```

The second option is if you want to permanently change the way the output appears every time that you run SAS. To do that, you can copy and modify the ODS template for the table.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-18-2017 03:43 PM

Thank you very much. Your answer was very helpful.