Tables and axes > Statistical functions and totals > Statistical statements
 
Statistical statements
Statements which perform statistical calculations are:
Statement
Description
n07
average
n12
mean
n13
sum of factors
n17
standard deviation
n19
standard error of the mean
n20
error variance of the mean
n30
medians and percentiles
n31
effective base
In most cases, you enter the statement at the point at which it is to be printed. All statements are formatted in the same way, like this:
naa[text];[options]
aa is the n statement number.
The options valid on all statistical statements are dec=, id= and scale=. The n30 also needs a fac= to define the factors for each range of values.
If the table contains absolute and percentage figures, the percentages are suppressed for the rows or columns created by these elements.
Note For means and other statistics (such as standard deviations), Quantum differentiates figures in which the sum of values is zero, and those in which the sum of cases (that is, respondents) is zero. If the run or table uses the option spechar to print special characters in place of zeros, Quantum only prints the special character if the number of cases going into the mean is zero. So 0/3 is always printed as zero, whereas 0/0 is printed as the special character for zero if one has been defined.
See also
Statistical functions and totals