|
|
||||||||

* Department of Animal Science, and
Department of Statistics, University of Nebraska, Lincoln 685830908
2 Corresponding author: pkononoff2{at}unl.edu
| ABSTRACT |
|---|
|
|
|---|
Key Words: statistical power Latin square mixed model SAS
Dairy nutrition experiments are often designed to test a null hypothesis that dietary treatments have no effect on some dependent variable, often milk yield. In testing this null hypothesis (HO) investigators risk making 1 of 2 types of errors. The first is to conclude that the dietary treatment has an effect when, in reality, it does not; this would be a type I error. The second error is to conclude that the dietary treatment has no effect when, in reality, it does; this would be a type II error. Investigators are often concerned with avoiding false claims in the form of type I errors; thus
, or the type I error rate, is usually set at 0.05.
Statistical power is defined as the probability of avoiding a type II error or, in other words, the probability of correctly rejecting the null hypothesis. If HO is true then the associated F statistic, or FO, has a central F distribution with 2 parameters, the numerator (v1) and denominator (v2) degrees of freedom. When HO is false, FO has the noncentral F distribution that depends upon v1 and v2. In this case, the noncentrality parameter (
) may reflect the magnitude of the treatment effect or, in other words, just how wrong the traditional null hypothesis is (Murphy and Myors, 2004).
The use of SAS (SAS Institute Inc., Cary, NC) and mixed linear models (Littell et al., 1996) in the animal sciences has been described in several publications (Littell et al., 1999; Wang and Goonewardene, 2004). The SAS program may also be used to estimate power by referring to a noncentral F distribution and required parameters at a specified
level. The objective of this technical note is to outline an applied method that estimates statistical power of an experiment that employs a Latin square as the experimental design. Because the SAS MIXED procedure (PROC MIXED) is used to analyze data sets that include random effects or repeated measurements or both, this note will outline basic programming procedures that may be used to estimate statistical power of a mixed model using this procedure. For a detailed outline of linear model background, readers are referred to Stroup (1999).
| Data Used in Illustration |
|---|
|
|
|---|
| Statistical Methodology |
|---|
|
|
|---|
![]() | [1] |
where yij(k)m represents observation ij(k)m; µrepresents the overall mean;
m represents the fixed effect of square m; ß(
)im represents the random effect of cow i within square m;
(
)jm represents the fixed effect of period j within square m; and
(k) represents the fixed effect of treatment k. The residual terms
ij(k)m are assumed to be normally, independently, and identically distributed with variance
| Estimation of Power Using SAS |
|---|
|
|
|---|
DATA new;
SET milk;
IF trt = 1 THEN mu =33.4;
IF trt = 2 THEN mu =33.8;
IF trt = 3 THEN mu =33.6;
IF trt = 4 THEN mu =36.6;
RUN;
, the error variance component, is listed (28.86). In addition, the variance among experimental units within square is defined as a RANDOM effect, and
(37.37) is also listed. If the investigator is planning an experiment based on the observations of a similar one conducted and analyzed, these estimates can be found in the original SAS output in the listing of Covariance Parameter Estimates. The NOPROFILE and NOITER options are used to set the variance components. The MODEL and CONTRAST statements are used to compute the F values for each test of interest. Then PROC MIXED is run using these estimates. In summary, this step reflects the design of the experimental layout, pattern of means specified, and the magnitude of the variance among experimental units given in the PARMS statement. Lastly, the ODS statement is used to create the data set b and an additional data set c for computations needed in the contrast statement. If the experimental design includes repeated measures of the response variable, the REPEATED statement can be included after the RANDOM statement, and the corresponding variances and covariances are listed as additional parameters in the PARMS statement. TITLE Power of test: Milk Yield;
PROC MIXED noprofile DATA=new;
CLASS sq per cow trt ;
MODEL mu=trt per(sq) sq;
RANDOM cow(sq);
PARMS (37.3720) (28.8617)/NOITER;
CONTRAST Linear trt -3-113;
CONTRAST Quadratic trt 1-1-11;
ODS OUTPUT tests3=b contrasts=c;
RUN;
level, 0.05. The FINV function returns the F value for the specified parameters v1, v2, and type I error rate (
). Both FINV and PROBF are SAS functions that are used to calculate the critical F value and the ß value associated with the Type II error rate. The PROBF returns the probability of retaining a false null hypothesis, and subtracting this from 1 yields the power of the test. Note that
is computed in the statement where power is calculated (i.e., numdf*f-value). DATA power; SET b c;
alpha=0.05;
fcrit = finv(1-alpha, numdf, dendf);
power=1-probf (fcrit, numdf, dendf, numdf* fvalue);
RUN;
PROC PRINT DATA = power;
RUN;
The output in our example is shown in Table 1
. The SAS program returns a critical F value of 2.83 and a power estimate of 0.39 at the 5% significance level. Thus, given the population variance and magnitude of the treatment effects, there is a probability of about 0.38 that the null hypothesis will be rejected. In other words there is approximately a 0.62 probability of committing a type II error. In addition the linear and quadratic tests return a power estimate of 0.40 and 0.18, respectively. In conclusion, the program may be useful to investigators planning studies to anticipate whether a reliable comparison can be expected.
|
| APPENDIX |
|---|
|
|
|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| FOOTNOTES |
|---|
Received for publication November 11, 2005. Accepted for publication April 4, 2006.
| REFERENCES |
|---|
|
|
|---|
This article has been cited by other articles:
![]() |
A. M. Gehman, P. J. Kononoff, C. R. Mullins, and B. N. Janicek Evaluation of Nitrogen Utilization and the Effects of Monensin in Dairy Cows Fed Brown Midrib Corn Silage J Dairy Sci, January 1, 2008; 91(1): 288 - 300. [Abstract] [Full Text] [PDF] |
||||
![]() |
A. L. Van Eenennaam, J. Li, R. M. Thallman, R. L. Quaas, M. E. Dikeman, C. A. Gill, D. E. Franke, and M. G. Thomas Validation of commercial DNA tests for quantitative beef quality traits J Anim Sci, April 1, 2007; 85(4): 891 - 900. [Abstract] [Full Text] [PDF] |
||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HOME | HELP | FEEDBACK | SUBSCRIPTIONS | ARCHIVE | SEARCH | TABLE OF CONTENTS |