.- help for ^collfreq^ (STB-44: dm59) .- Collapse to frequencies ----------------------- ^collfreq^ varlist [weight] [^if^ exp] [^in^ range] [, ^f^req^(^string^) z^ero ^nomiss^ ] ^fweight^s are allowed. Description ----------- Given varlist, ^collfreq^ produces a new data set consisting of all combinations of varlist that exist in the data together with a new variable that contains the frequency of each combination. ^collfreq^ destroys the data in memory. Options ------- ^freq(^string^)^ specifies a name for the frequency variable. If not specified, ^freq^ and ^_freq^ are tried in turn. The name must be new. ^zero^ specifies that combinations with frequency zero are wanted. ^nomiss^ specifies that observations with missing values on any of the variables in varlist will be dropped. If not specified, all observations possible are used. Examples -------- . ^collfreq foreign rep78^ . ^collfreq foreign rep78, z^ Author ------ Nicholas J. Cox University of Durham, UK n.j.cox@@durham.ac.uk Also see -------- STB: STB-44 dm59