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
grstest output into excelHello everybody, Do you know how I can extract the results from a GRS-test into a table? My curren…
Importing Json-formatted data from a .txt file into stataDear Statausers, I am facing the following: I have received a .txt file containing data in json for…
Obtaining predicted values after regressionDear all Thanks for helping me in advance. I guess my problem is not that difficult to solve. Yet I …
Sorry for the double post, there was a bugSorry for the double post, there was a bug …
RegressionHello guys, I wanted know how to at least explain the coefficients. Help! HTML Code: regress log_…
Subscribe to:
Post Comments (Atom)
0 Response to -contrast- function not finding variables that exist
Post a Comment