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
Error message with 'collect export' in Stata 17Hello, I have a large descriptive Table 1 that I'd like to try to export to an Excel file for a man…
Multiple correspondence analysis predictionHi all I am trying to make a multiple correspondence analysis in Stata using the Burt approach. My a…
Margins plots and significanceHello Stata Folk, I'm running a panel regression with squared interaction terms. I want to confirm …
jwdid: DID using ETwFEDear all thanks to prof. Baum a new command is ready to use. jwdid implements the did estimator prop…
Merge identifier and date within rangeHi all, I would like to merge two datasets by identifier and date within range dataset A: accountnum…
Subscribe to:
Post Comments (Atom)
0 Response to -contrast- function not finding variables that exist
Post a Comment