Expresses tables as percentages of control cells (R.W. Payne).
Option
PRINT = string token |
Controls printed output (percentages ); default perc |
---|
Parameters
OLDTABLE = tables |
Tables containing the original values |
---|---|
NEWTABLE = tables |
Tables to store the percentage values |
FACTOR = factors or pointers |
Factor, or pointer of factors, with control levels |
CONTROL = scalars, vaiates, texts or pointers |
Identifies the control level or levels of each FACTOR (if more than one is specified for a factor, their mean is used); default uses the reference level |
Description
T%CONTROL
allows you to express the body of a table as percentages of the values of “control” levels of one or more of its classifying factors. These controls might be standard or check varieties in a variety trial, or placebo treatments in a medical trial, or zero levels of fertilizers in an agricultural field experiment, etc.
You supply the table using the OLDTABLE
parameter. You can save a new table containing the percentages using the NEWTABLE
parameter. The factors containing the control levels are specified by the FACTOR
parameter; if there are several you must put them into a pointer. FACTOR
need not be set if the tables are one-way. The CONTROL
parameter identifies the control levels of each factor. Usually the factor will have a single control, specified either by giving its level (in a scalar) or its label (in a string or single-valued text). Alternatively, you can define several controls, by specifying a variate (of levels) or a multi-valued text (of labels); T%CONTROL
then takes means over the control levels. Again, if there are several factors, you must put the corresponding CONTROL
settings into a pointer. If CONTROL
is unset or missing for any factor, T%CONTROL
uses its reference level.
Not all the factors in the table need to have control levels. Suppose, for example, we have a 2-way table with factors A
and B
where the first level of A
(a1) is the control. Then the cell (ai, bj) will be given as a percentage of the cell (a1, bj).
By default T%CONTROL
prints the table of percentages, but you can set option PRINT=*
to suppress this.
Option: PRINT
.
Parameters: OLDTABLE
, NEWTABLE
, FACTOR
, CONTROL
.
Method
T%CONTROL
uses COMBINE
to access the control cells of the table.
See also
Directives: COMBINE
, TABLE
, TABULATE
, MARGIN
.
Procedures: MTABULATE
, PERCENT
, SVSTRATIFIED
, SVTABULATE
, TABINSERT
, TABMODE
, TABSORT
.
Commands for: Calculations and manipulation.