public class ANCOVAEx1 extends Object
Performs a one-way analysis of covariance.
This example fits a one-way analysis of covariance model assuming parallelism using data discussed by Snedecor and Cochran (Table 14.6.1, pages 432-436). The responses are concentrations of cholesterol (in mg/100 ml) in the blood of two groups of women: women from Iowa and women from Nebraska. The age of a woman is the single covariate. The cholesterol concentrations and ages of the women according to state are shown in the following table. (There are 11 Iowa women and 19 Nebraska women in the study. Only the first 5 women from each state are shown here.)
Iowa | Nebraska | ||
---|---|---|---|
Age | Cholesterol | Age | Cholesterol |
46 | 181 | 18 | 137 |
52 | 228 | 44 | 173 |
39 | 182 | 33 | 177 |
65 | 249 | 78 | 241 |
54 | 259 | 51 | 225 |
There is no evidence from the data to indicate that the regression lines for cholesterol concentration as a function of age are not parallel for Iowa and Nebraska women (p-value is 0.5425). The parallel line model suggests that Nebraska women may have higher cholesterol concentrations than Iowa women. The cholesterol concentrations (adjusted for age) are 195.5 for Iowa women versus 224.2 for Nebraska women. The difference is 28.7 with an estimated standard error of
$$\sqrt{170.4 + 97.4 - 2(2.9)} = 16.1$$Constructor and Description |
---|
ANCOVAEx1() |
public static void main(String[] args)
Copyright © 2020 Rogue Wave Software. All rights reserved.