Saves output from analysis of an unbalanced design (by
AUNBALANCED) (R.W. Payne).
||Limit on number of factors in the model terms generated from the
||To save residuals from the analysis|
||To save fitted values|
||Factor combinations for which to form predicted means (
||Type of adjustment to be made when predicting means (
||Significance level (as a percentage) for the least significant differences|
||Type of residuals to form if the
||Save structure (from
||Model terms for which information is required|
||Predicted means for each term|
||Standard errors of the means for each term|
||Standard errors of differences between means|
||Approximate effective standard errors of the means: these are formed by procedure
||Least significant differences|
This procedure can be used, following the use of procedure
AUNBALANCED, to save output for the analysis of variance of an unbalanced design.
Options are provided to save information about the analysis as a whole. The
FITTEDVALUES options allow variates to be specified to store the residuals and fitted values, respectively. The
RMETHOD option controls whether simple or standardized residuals are saved; by default
SAVE option can be set to the save structure from the analysis from which output is to be saved. If
SAVE is not set, output will be produced for the most recent analysis from
AUNBALANCED; however, none of the Genstat regression directives (
DROP and so on) must then have been used in the interim.
The parameters of
AUKEEP save information about particular model terms in the analysis. With the
TERMS parameter you specify a model formula, which Genstat expands to form the series of model terms about which you wish to save information. As in
FACTORIAL option sets a limit on the number of factors in each term. Any term containing more than that limit is deleted. The subsequent parameters allow you to specify identifiers of data structures to store various components of information for each of the terms that you have specified. The
MEANS parameter saves tables of predicted means, the
SEMEANS parameter saves tables of standard errors for the means, the
SEDMEANS parameter saves symmetric matrices of standard errors of differences, the
ESEMEANS parameter saves tables of approximate effective standard errors, and the
LSD parameter saves symmetric matrices of least significant differences. If you have a single term, you can supply a table or symmetric matrix for each of these parameters, as appropriate. However, if you have several terms, you must supply a pointer which will then be set up to contain as many tables or symmetric matrices as there are terms. The
LSDLEVEL option sets the significance level (as a percentage) for the least significant differences.
Tables of means are calculated using the
PREDICT directive. The first step (A) of the calculation forms the full table of predictions, classified by every factor in the model. The second step (B) averages the full table over the factors that do not occur in the table of means. The
COMBINATIONS option specifies which cells of the full table are to be formed in Step A. The default setting,
estimable, fills in all the cells other than those that involve parameters that cannot be estimated, for example because of aliasing. Alternatively, setting
COMBINATIONS=present excludes the cells for factor combinations that do not occur in the data. The
ADJUSTMENT option then defines how the averaging is done in Step B. The default setting,
marginal, forms a table of marginal weights for each factor, containing the proportion of observations with each of its levels; the full table of weights is then formed from the product of the marginal tables. The setting
equal weights all the combinations equally. Finally, the setting
observed uses the
WEIGHTS option of
PREDICT to weight each factor combination according to its own individual replication in the data.
If the y-variate originally analysed by
AUNBALANCED was restricted, only the units not excluded by the restriction will have been analysed.
Commands for: Analysis of variance.
CAPTION 'AUKEEP example',\ 'Data from Genstat 5 Release 1 Reference Manual, page 340.';\ STYLE=meta,plain FACTOR [NVALUES=36; LEVELS=3; VALUES=12(1...3)] Block FACTOR [NVALUES=36; LABELS=!t(baresoil,emerald,emergo)] Leachate & [LABELS=!t('1','1/4','1/16','1/64')] Dilution VARIATE [NVALUES=36] Nhatch,Nnohatch READ Leachate,Dilution,Nhatch,Nnohatch 1 2 109 318 3 4 54 350 3 1 * 415 2 2 783 212 3 3 652 1375 2 4 490 816 1 3 95 1219 2 1 1012 66 1 4 166 943 3 2 1059 313 1 1 257 1006 2 3 1058 234 2 4 507 1119 1 2 194 840 1 3 175 1707 1 1 326 609 3 4 142 980 2 3 286 230 3 2 546 313 2 2 * 301 2 1 2471 112 3 3 76 489 1 4 208 503 3 1 * 325 1 1 322 913 1 2 255 2246 3 2 1774 1446 2 2 999 193 2 4 388 1836 3 4 221 1800 1 3 220 1902 2 1 2821 187 3 1 1486 463 3 3 717 1473 1 4 143 941 2 3 968 550 : CALCULATE Logit%h = LOG(Nhatch/Nnohatch) BLOCKSTRUCTURE Block TREATMENTSTRUCTURE Leachate*Dilution AUNBALANCED [PRINT=*] Logit%h AUKEEP Leachate + Dilution;\ MEANS=!p(LeachateMeans,DilutionMeans);\ SEDMEANS=!p(LeachateSED,DilutionSED) PRINT [RLPRINT=integers,labels,identifiers;\ CLPRINT=integers,identifiers]\ LeachateMeans,LeachateSED,DilutionMeans,DilutionSED