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
- /
- Reporting T-values in LSMEANS Statement in PROC GL...

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

06-20-2015 10:37 PM

I'm trying to get SAS to spit out t-values for my contrasts in LSMEANS. Is there any way to achieve this? It just reports p-values for each comparison.

My code is

LSMEANS species*wax / pdiff stderr;

Accepted Solutions

Solution

06-22-2015
11:34 AM

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

06-22-2015 11:34 AM

All Replies

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

06-22-2015 10:22 AM

In general, if p is a probability for a t-distributed statistic, then you can recover the t value by using the QUANTILE function. You can use the OUT= option on the LSMEANS statement to produce an output data set, or you can use ODS OUTPUT.

However, you have to know the degrees of freedom for the pairwise comparison and the significance level of the test. A discussion with formulas is in the doc: SAS/STAT(R) 13.1 User's Guide

I am not an expert in multiple comparisons, but I know that they can be tricky, which might be why the procedure does not output the degrees of freedom.

Solution

06-22-2015
11:34 AM

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

06-22-2015 11:34 AM

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

06-22-2015 01:36 PM

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

06-25-2015 07:22 PM

Thanks all.