help sqstatlist, help sqstatsum,                                (SJ6-4: st0111)
help sqstattab1, help sqstattab2,
help sqstattabsum
-------------------------------------------------------------------------------

Title

sqstat -- Describe variables generated with sq-egen functions

Syntax

sqstatlist [varlist] [if] [in] [, replace ranks(numlist) replace list_options]

sqstatsum [varlist] [if] [in] [, summarize_options]

sqstattab1 [varlist] [if] [in] [, tab1_options]

sqstattab2 varname1 [varname2] [if] [in] [, tab2_options]

sqstattabsum varname1 [varname2] [if] [in] [, format(%fmt) tabsum_options]

Description

Commands that provide a convenient way to describe the variables generated with sqegen. The commands are useful because SQ-data is in long form, while the variables generated with sqegen refer to the sequences as entire entity. To further describe the new variables one might want to reshape the data to wide. The sqstat-commands allow to summarize, tabulate, and list the variables generated with the sqegen function as if the data were in wide format. Thereby the names of the variables generated with sqegen are automatically processed.

The following sqstat programs are available:

sqstatlist [varlist] [ , replace ranks(numlist) ]: Lists all variables generated with sqegen. With varlist only the specified variables are listed. replace is used to keep the listed dataset in memory. This is useful to produce some non-standard description (like graphs, for example) of the e-generated variables. ranks() is used to restrict the output to the most frequent sequences. Inside the parentheses a numlist might be specified, which refer to the position of the sequences in the sorted frequency table.

sqstatsum [varlist]: If given without the optional varlist the command summarizes all variables generated with the sqegen bundle. With varlist only the specified variables are summarized.

sqstattab1 [varlist]: If given without the optional varlist the command produces one way frequency tables of all variables generated with the sqegen bundle. With varlist only the specified variables are used.

sqstattabsum varname1 [varname2 ]: Summarizes all e-generated variables for categories of the specified variables. Option format(%fmt) allows to set the display format of all cells in the output. The default is %9.0g.

sqstattab2 varname1 [varname2]]: If given without the optional varname2 the command displays a two-way table of varname1 against all variables generated with the sqegen bundle. If specified with varname2 a two-way table of the two specified variables is displayed.

Options

replace keeps listed data in memory.

ranks(numlist) restricts tabulation on most frequent sequences.

list_options are any of the options allowed with list.

summarize_options are any of the options allowed with summarize.

tab1_options are any of the options allowed with tabulate oneway.

tab2_options are any of the options allowed with tabulate twoway.

format(%fmt) specifies output format.

tabsum_options are any of the options allowed with tabulate, summarize().

Author

Ulrich Kohler, WZB, kohler@wz-berlin.de

Examples

. sqstatlist

. sqstatlist, ranks(1/10)

. sqstatsum

. sqstattab1

Also see

Manual: [R] list [R] summarize [R] tabulate

Online: sq, sqdemo, sqset, sqdes, sqegen, sqstat, sqindexplot, sqparcoord, sqom, sqclusterdat, sqclustermat