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.
Related Posts with -contrast- function not finding variables that exist
MarkDoc Mini (v.4.2.0) is independent of third-party softwareI am introducing a new option in MarkDoc, called mini that allows running MarkDoc without requiring …
How to add label to bar graphDear all, I am trying to add country labels to my bar graph, but somehow I cannot figure out how to…
Trade estimation using the PPML methodDear Joao, I am working on trade potential estimation between Morocco and it's principal commercial …
Two line frequency graph helpHello everyone. I've been trying to figure this out on my own but I haven't been very successful. I…
extract variable name when the observation has a highest value.dear listers, I would like to fill in the cell with a variable name showing the highest value in a …
Subscribe to:
Post Comments (Atom)
0 Response to -contrast- function not finding variables that exist
Post a Comment