gdset: set globals variables for group comparisons
--------------------------------------------------

-gdset- specifies:

    1) the variable with values of 0 and 1 defining groups.
    2) names for new variable indicating group membership.
    3) labels for the two groups.

SYNTAX

gdset, gvar(varname) g1var(string) g0var(string)
         [ g1label(string) g0label(string) Detail Reset ]

OPTIONS

gvar(varname)       Name of existing 0/1 variable that defines the groups.
g0var(string)       Name for new variable that to equal 1 if in group 0,
                        else 0. Referred to as group 0 indicator.
g1var(string)       Name for new variable that to equal 1 if in group 1,
                        else 0. Referred to as group 1 indicator.

g0label(string)     Short label for group 0. First letter of label is used
                        to prefix interactions with g0var and rhs variables.
g1label(string)     A short label for group 1. First letter of label is used
                        to prefix interactions with g1var and rhs variables.
details             List details.
reset               Reset globals and exit.

The variables with names in g0var() and g1var() are generated by -gdgen-.

GLOBALS CREATED

gvar       Name of existing variable defining group.
g0label    Short label for group 0.
g0var      Name of group indicator variable equal to 1 if group 0.
g1label    Short label for group 1.
g1var      Name of group indicator variable equal to 1 if group 1.

gis:       $gvar=1 (e.g., male=1)
gisg0:     $g0label=1 (e.g., f0=1)
gisg1:     $g1label=1 (e.g., m1=1)

xisg1mn1:  Null string for use by -gdxis-
xisg0mn0:  Null string for use by -gdxis-
xismn1:    Null string for use by -gdxis-
xismn0:    Null string for use by -gdxis-
xisg1:     Null string for use by -gdxis-
xisg0:     Null string for use by -gdxis-
xis:       Null string for use by -gdxis-

EXAMPLE

. gdset2, gvar(male) g0var(f0) g1var(m1) ///
>     g0label(women) g1label(men) details

Globals created by -gdset2-:

    $gvar:     male
    $g0var:    f0
    $g0label:  women
    $g1var:    m1
    $g1label:  men

VERSION

2008-01-26

exit