I am trying to contrast the variables "race" and "vaccine". Both variables contained negative value labels in the dataset. I changed this with
Code:
egen race = group(w5_best_race), label
egen vaccine = group(w5_nc_cvhadvac), label
I can run regressions with the new variables, however when I try contrast
Code:
contrast race@vaccine, effects
contrast vaccine@race, effects
I get the following output:
variable race not found
r(111);
and
variable vaccine not found
r(111);
respectively
Despite being able to use the variables in regression and view them with -tab- and see them in my variables list. They definitely exist.
Code:
egen race = group(w5_best_race), label
egen vaccine = group(w5_nc_cvhadvac), label
I can run regressions with the new variables, however when I try contrast
Code:
contrast race@vaccine, effects
contrast vaccine@race, effects
I get the following output:
variable race not found
r(111);
and
variable vaccine not found
r(111);
respectively
Despite being able to use the variables in regression and view them with -tab- and see them in my variables list. They definitely exist.
Comment