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
- /
- Forecasting
- /
- syslin stest F-value calculation: how to find nume...

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

07-07-2017 03:48 PM

Hello,

When I run proc syslin and include stest, the test result output includes: Num DF, Den DF, F Value, Pr>F. These are useful, but I also need the specific numerator (Model MS) and denominator (Error MS) values that are used to calculate the F-value (=num/denom). How can I get these numerator and denominator values displayed?

Thank you very much in advance.

Best regards,

Can (John)

PS: FYI, the stest code and the out I get are below:

STEST rco1.rco2LAG1=0, rco1.rco2LAG2=0, rco1.rco2LAG3=0, rco1.rco2LAG4=0;

SAS Output

Num DF | Den DF | F Value | Pr > F |
---|---|---|---|

4 | 1705473 | 19.22 | 0.0001 |

Accepted Solutions

Solution

07-18-2017
02:24 PM

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

07-11-2017 06:27 PM

Hi Can,

Although PROC SYSLIN does not directly provide the numerator and denominator values associated with the F statistic, you can add the PRINT option to the STEST statement to obtain the intermediate computations. Matrix multiplication in SAS/IML can then be used to compute the numerator of the F statistic. The denominator is computed as the number of restrictions*system weighted MSE, where the number of restrictions is equal to the Numerator DF, and the system weighted MSE is part of the printed output of the procedure. Please see the following documentation link for additional details:

I hope this helps!

DW

All Replies

Solution

07-18-2017
02:24 PM

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

07-11-2017 06:27 PM

Hi Can,

Although PROC SYSLIN does not directly provide the numerator and denominator values associated with the F statistic, you can add the PRINT option to the STEST statement to obtain the intermediate computations. Matrix multiplication in SAS/IML can then be used to compute the numerator of the F statistic. The denominator is computed as the number of restrictions*system weighted MSE, where the number of restrictions is equal to the Numerator DF, and the system weighted MSE is part of the printed output of the procedure. Please see the following documentation link for additional details:

I hope this helps!

DW

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

07-18-2017 02:25 PM

Thank you very much for the response, DW, I really appreciate it.

Best regards,

Can

Best regards,

Can

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

a month ago

I'm glad the information helped, Can!

Best Regards,

DW