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
Regression for state-wide daily=data with fixed population percentageHello, So I have data set up as such (sample data that I just made up): Code: * Example generated b…
Moving cumulative sum over 10-year periodDear Statalist Community, I am currently struggling with a data transformation task and was wonderi…
Moving cumulative sum over 10-year periodDear Statalist Community, I am currently struggling with a data transformation task and was wonderi…
Regression for state-wide daily data with fixed population percentage within statesHello, So I have data set up as such (sample data that I just made up): Code: * Example generated b…
Reshape data from long to wide format using the rolling windowsDear all, I am desperately looking for your help. I am trying to reshape my data from long to wide …
Subscribe to:
Post Comments (Atom)
0 Response to -contrast- function not finding variables that exist
Post a Comment