MARGIN directive
Forms and calculates marginal values for tables.
Option
Parameters
Description
You can use MARGIN to extend a table to contain marginal values, or to change the marginal values of a table that already has margins, or to delete the margins from a table. The tables whose margins are to be changed are specified by the OLDTABLES parameter. If you specify only this parameter, the new values replace those of the original tables. However, if you want to retain the original values, you can specify new tables to contain the amended values, using the NEWTABLES list. These tables will be declared automatically, if you have not declared them already.
The METHOD parameter controls the type of margins that are formed. If you set METHOD=deletion, all the margins of the tables are deleted but the body of the table is retained.
The CLASSIFICATION option specifies the list of factors for which you want to form marginal values. GenStat puts missing values in the margins that are excluded if the METHOD parameter is set to maxima or minima; for other settings of METHOD, GenStat puts in zeroes. The classifying sets for each table can be different, but all the factors in the CLASSIFICATION option must be in the classifying sets of each OLDTABLE.
Option: CLASSIFICATION.
Parameters: OLDTABLE, NEWTABLE, METHOD.