MTABULATE procedure
Forms tables classified by multiple-response factors (R.W. Payne).
Options
Parameters
Description
Multiple responses occur in surveys as the result of open-ended questions like "Which cities have you visited?". In GenStat, these can be formed by the FMFACTORS procedure and are represented by a pointer containing a factor for each possible response code. The factors have levels 0 and 1, and corresponding labels 'absent' and 'present'. If the original response codes were textual, the various strings are used as labels of the pointer; while if they were numerical, the numbers are used as the pointer suffixes.
The multiple responses for the tables are specified by the MRESPONSE option, while any ordinary factors are specified by the CLASSIFICATION option. The MARGINS option indicates whether or not the tables are to contain margins. For the multiple responses, these represent summaries not over the responses but over the respondents (who may each have given several responses). MTABULATE needs to generate an ordinary factor to classify the dimension of the tables corresponding to each set of multiple responses. You can supply identifiers for these factors (thus allowing them to be accessed outside the procedure), using the MRFACTOR option.
The other options and parameters are similar to those of the TABULATE directive. The COUNTS option can save a table containing the frequencies of the various responses. The DATA parameter provides information about the respondents who made the multiple responses. (So, for example, you could set DATA to the incomes of the respondents and then tabulate the average incomes of the people who have visited each of the cities.) The other parameters allow you to save the various types of numerical summary: totals, numbers of non-missing values, means, minima, maxima, variances, quantiles, standard deviations, skewness and kurtosis coefficients and (within-cell) standard errors of means.
The PERCENTQUANTILES option specifies which quantiles you want. By default just the median (the 50% quantile) is produced. However, you can set PERCENTQUANTILES to a scalar to request another percentage point, or to a variate to request several. The QUANTILE parameter will then return a pointer with length equal to the required number of quantiles, instead of a single table.
The PRINT option allows you to print the tables (as well as, or instead of, saving them). By default nothing is printed.
Options: PRINT, CLASSIFICATION, MRESPONSE, MRFACTOR, COUNTS, MARGINS, WEIGHTS, PERCENTQUANTILES, SDS, SKEWNESS, KURTOSIS, SEMEANS..
Parameters: DATA, TOTALS, NOBSERVATIONS, MEANS, MINIMA, MAXIMA, VARIANCES, QUANTILES.
Method
MTABULATE uses TABULATE to form tables for each multiple response or combination of multiple responses, and then EQUATE to put them all into a single table.
Action with
RESTRICT
MTABULATE takes account of any restrictions on the classification or multiple-response factors or the DATA or WEIGHT variates.