Subscribe Bookmark RSS Feed

JMP LSMeans Contrast of Slopes - Example?

bjg20

Community Trekker

Joined:

Nov 1, 2013

I'm trying to find an example of how to setup a contrast of slopes within JMP.  I have found examples which compare multiple categories (http://www.jmp.com/support/help/Regression_Reports.shtml) but not slopes.  I tried setting up the SAS example below within JMP but under age*height I don't get an option for LSMeans Contrast (it's grayed out).  I have been able to get the LSMeans Contrast option to work for the categorical cross-terms using my data of interest (as opposed to this example) but I don't trust the results.  I think I'd be able to figure it out with my data if I understood the example below.  Could you point me in the right direction for setting this up in JMP?

Website with detailed example:

http://www.ats.ucla.edu/stat/sas/faq/compreg3.htm

Example Table:

idageheightweight
1156140
2160155
3164143
4168161
5172139
6154159
7162138
8165121
9165161
10170145
11256117
12260125
13264133
14268141
15272149
16254109
17262128
18265131
19265131
20270145
21364211
22368223
23372235
24376247
25380259
26362201
27369228
28374245
29375241
30382269

SAS Code from Example:

PROC GLM DATA=htwt2 ;
  CLASS age ;
  MODEL weight = age height age*height / SOLUTION ;
  CONTRAST 'test equal slopes' age*height 1 -1 0,
  age*height 0 1 -1 ;
RUN;


My Code from JMP Fit Model:


DATA Contrast_Ex; INPUT  age &$ height weight; Lines;

1  56  140 

1  60  155

.

.

3  82  269 

;

RUN;

PROC GLM  DATA=Contrast_Ex ALPHA=0.05;

CLASS age;

MODEL  weight =  age height age*height;

RUN;