Hi,
In SAS, we can use proc format to change label value, for example, school is
the years of schooling, which ranges 0 to 17. We can use:
proc format;
value school low-<12='<12' 12-high='12+';
run;
later in regression we can use the format so that school is inlucded as a
dummy variable:
proc logistic;
class school;
model y=school;
format school school.;
run;
How do we achieve the same goal in Stata without creating new variables? I
thought we could use label define and label value, but it didn't work.
Thanks a lot,