1.
Select Help > Sample Data Library and open Drug.jmp.
2.
Select Analyze > Fit Model.
3.
Select y and click Y.
4.
Select Drug and click Add.
5.
Click Run.
In this example, Drug has three levels, a, d, and f. The standard least squares fitting method translates this specification into a linear model as follows: The nominal variables define a sequence of indicator variables, which only assume the values 1, 0, and –1. The linear model is written as follows:
yi is the observed response for the ith observation
x1i is the value of the first indicator variable for the ith observation
x2i is the value of the second indicator variable for the ith observation
β0, β1, and β2 are parameters for the intercept, the first indicator variable, and the second indicator variable, respectively
ει are the independent and normally distributed error terms
The first indicator variable, , is defined as follows. Note that Drug=a contributes a value 1, Drug=d contributes a value 0, and Drug=f contributes a value –1 to the indicator variable:
Solving for βi yields the following:
Leverage Plot and LS Means Table for Drug shows the Leverage Plot and the LS Means Table for the Drug effect. Parameter Estimates and Effect Tests for Drug.jmp shows the Parameter Estimates and the Effect Tests reports for the one-way analysis of the drug data.
Leverage Plot and LS Means Table for Drug
Parameter Estimates and Effect Tests for Drug.jmp
The Drug effect can be studied in more detail by using a contrast of the least squares means, as follows:
1.
From the red triangle menu next to Drug, select LSMeans Contrast.
2.
Click the + boxes for drugs a and d, and the - box for drug f to define the contrast that compares the average of drugs a and d to f (shown in Contrast Example for the Drug Experiment).
3.
Click Done.
Contrast Example for the Drug Experiment
The Contrast report shows that the LSMean for drug f is significantly different from the average of the LSMeans of the other two drugs.

Help created on 9/19/2017