Agriculture Reference
In-Depth Information
replace ascorbic = 0 if ascorbic == .
generate x = 0
replace x = 1 if ascorbic == 0
After adding the changes to the dataset, enter the following command:
anova ascorbic trt rep c. x
This results in the following output:
Number of obs = 15 R-squared = 0.9569
Root MSE = 76.2643 Adj R-squared = 0.9139
Source | Partial SS df MS F Prob > F
------+----------------------------------------------------
Model | 904582.008 7 129226.001 22.22 0.0003
|
trt | 20246.9417 2 10123.4708 1.74 0.2435
rep | 49805.025 4 12451.2563 2.14 0.1785
X | 341226.675 1 341226.675 58.67 0.0001
|
Residual | 40713.725 7 5816.24643
-----------+----------------------------------------------------
Total | 945295.733 14 67521.1238
This results in an unbiased partial sum of squares for the treatments
(i.e., trt) and can be used to estimate a value for the missing data
point. After entering the estimation command, enter
matrix list e(b)
The value for -x in this matrix is an unbiased estimate for the miss-
ing value, which is -(-799.875) or 799.875. This value can then be
substituted in the dataset for the missing value and the ANOVA run
again as
anova ascorbic trt rep
This results in the following output:
Number of obs = 15 R-squared = 0.6721
Root MSE = 71.3387 Adj R-squared = 0.4262
Source | Partial SS df MS F Prob > F
--------+----------------------------------------------------
Model | 83462 6 13910.3333 2.73 0.0948
|
Search WWH ::




Custom Search