Unblock data set (STB-7: dm8) ---------------- ^unblock^ pos_var pop_var [^, g^enerate^(^new_grp_var^)^ ] Description ----------- ^unblock^ is for use on data sets organized such that ^blogit^ must be used to estimate logistic regression models; see ^help glogit^. After unblocking, the superior ^logistic^ command can be used; see ^help logistic^. pos_var is a variable recording the number of positive responses and pop_var the total population. ^unblock^ changes the data in memory so that pos_var will be a 0/1 variable with 1 indicating a positive response and pop_var will contain the total population for the positive or negative response. Thus, after unblocking, you can type "^logistic^ pos_var ... ^[freq=^pop_var^]^" to esti- mate logisitic models. Options ------- ^generate(^new_grp_var^)^ creates new_grp_var tying the observations back to their original structure. If two observations in the resulting data set have new_grp_var equal to 4, then both came from the 4th observation in the original data. This option is seldom specified. Example ------- . ^blogit deaths pop agecat exposed^ . ^unblock deaths pop^ . ^logistic deaths agecat exposed [freq=pop]^ Author ------ Joseph Hilbe, editor, STB. Fax 602-860-1446. Also see -------- STB: dm7 (STB-7) On-line: ^help^ for ^glogit^, ^logistic^