I have tried to use dataex but I'm having some difficulty in uploading my data, so I apologise for that. I have attached a screenshot of what I'm attempting to do.
I was trying to see if my regression indicated a non-linear relationship, between my ordinal dependent variable (envirecon) which is on a 10 point scale and I am treating as a continuous, and my categorical independent variable edu_lvl. edu_lvl has categories of education level: below gcse, gcse, a level, undergrad and post grad.
I read on another topic that it does not make sense to do this as Dr Clyde Schechter commented: "That's because in a categorical variable, the numbers representing the levels are considered to be arbitrary". He recommended to someone to proceed their regression with a margins plot. I am attempting to do this, but stata is telling me that my dependent variable - envirecon - was not found in the list of covariates. I have attached a screenshot from stata below.
Would someone be able to let me know where I've gone wrong?
Thank you in advance.
I was trying to see if my regression indicated a non-linear relationship, between my ordinal dependent variable (envirecon) which is on a 10 point scale and I am treating as a continuous, and my categorical independent variable edu_lvl. edu_lvl has categories of education level: below gcse, gcse, a level, undergrad and post grad.
I read on another topic that it does not make sense to do this as Dr Clyde Schechter commented: "That's because in a categorical variable, the numbers representing the levels are considered to be arbitrary". He recommended to someone to proceed their regression with a margins plot. I am attempting to do this, but stata is telling me that my dependent variable - envirecon - was not found in the list of covariates. I have attached a screenshot from stata below.
Would someone be able to let me know where I've gone wrong?
Thank you in advance.
Comment