Title titlestring Factors #factors levels1 levels2 level3... Sample Size samplesize Model modeldescription Names Factor1name Factor2name Factor3name... Levels Factor1name Level1name Level2name... Levels Factor2name Level1name Level2name... Levels Factor3name Level1name Level2name... Options optionname [parameters] Comment commentstring
The keywords which begin each line can be abbreviated with the first letter
of the keyword (or any string beginning with the same first letter) and
can be in upper or lower case. As an example of these statements, consider
a mixed model design in which factors A and B are between groups, factors
C and D are within groups, and there are 6 subjects per group. Factor A
has 3 levels, B has 2 levels, and C and D have 4 levels. A typical set
of design specifications would be:
Title ANOVA with 2 between factors and 2 within factors Factors 5 3 2 4 4 6 Sample Size 1 Model Mixed Design AxBx(CxDxS) Names Afactor Bfactor Cfactor Dfactor Options Means A B C Options Epsilon C This is a comment field.
The first thing which should be noted is that subjects are considered a factor in any design with repeated measures. In the Factors statement, the first number specifies that there are 5 factors (including subjects) and the 5 following numbers indicate the number of levels in each factor, beginning with factor A and ending with the subjects factor. The sample size is always 1 in designs with repeated measures, but the actual number of subjects per cell would be indicated in the Sample Size statement for a between subjects design. The Model statement specifies a mixed design and indicates which factors are between subjects and which are within subjects (mixed design is specified even for a completely within subjects design). The word "split-plot" may be used instead of "mixed design" (actually any word beginning with "m" or "s" is fine). The factors are always indicated by letters in alphabetical order, with the subjects factor is denoted as S. The between subjects factors must precede the within subjects factors, and the within subjects factors are enclosed within parentheses. It is not, therefore, possible to have model specifications like "AxCx(BxS)" or "(AxBxS)xC". If no model statement is used, a between subjects design is assumed. A between subjects can be specified explicitly by using "between" as the model type. For example, "model between AxB" would be used for a two factor between subjects design.
In addition to the designation of factors as A, B, C, etc., it is also possible to give the factors names, via the "Names" command, which will be used in the anova table. The names of the factors follow the "Names" command in order, beginning with the first factor. If fewer factor names are specified than the total number of factors, then the factors without specified names will revert to the default names (A, B, C, etc.). If a factor name contains non-standard characters such as spaces or commas, then the name should be enclosed in double quotes. In the anova table, interaction effects are named on the basis of the first letters of the constituent factors. If redundant first letters exist, ranova will choose alternative abbreviations for the factors.
The "Levels" command can be used in conjunction with the -L command line option, to allow level names to be generated for a factor instead of numbers, making the final cleave output much more readable. The command begins with the keyword ’Levels’, followed by the name of one of the factors listed in the "Names" command (it must match exactly, case is significant), followed by a name for each level of that factor. There can be as many "Levels" commands as there are factors named with the "Names" command, but not all (in fact none) are required; any factors not having level names specified for them will default back to having numbers generated to differentiate the levels. "Levels" commands can be given in any order, however a "Names" command must precede the "Levels" command. The "Levels" command has no visible effect without the use of the -L command line option.
"Options List" produces a list of the input data with the grouping indices so that proper group assignment of each case can be verified. This can be emulated by placing ’-l’ on the command line.
"Options Means" causes means and standard errors to be printed. This statement can be followed by a number, and the statistics will be printed for all cells with at least that number of samples. Alternatively, a list of factor names can be used, as in the above example (the default names, A, B, C, etc., must be used). Statistics will then be printed for all levels of the listed factors and their interactions. This is most useful when one wishes to average across subjects, in which case all of the factors except S would be listed. This option can be emulated by placing ’-m minsamples’ on the command line, where ’minsamples is the minimum number of samples necessary for a cell’s means to be printed. There is no way to specify factor names on the command line. The means printed by ranova can be formatted into tables by the table program.
"Options Compress" causes ranova to compress the output, eliminating unnecessary blank lines, the model summary, and epsilon values that equal 1.0. This option is handy when one wants to reduce the size of the file for printing. It can be emulated by placing ’-c’ on the command line.
All of the command information, including comment fields, is printed first. A summary of the design is then printed, followed by the data list or means if requested. These are followed by an ANOVA summary table. In the summary table, effects are grouped according to which error term is used. For each effect, the source, sum of squares, degrees of freedom (unadjusted), mean square, F-value, and p-value are printed. P-values less than .05 are indicated with a "*" symbol. F-values that are smaller than expected by chance at the .05 level are indicated with a "#" symbol. Significantly small F-values usually indicate a violation of the assumptions of ANOVA or the absence of some counterbalanced factor from the design specification. If the epsilon values were calculated, then the adjusted p-values are also printed. There is one epsilon value for each error term in the design, and the epsilon values are printed in a table following the ANOVA summary table.
Table of Contents