Suppose I used a multiple linear regression to model the association between cognitive score (Y) and sleep quality (X) along with other variables (gender, age etc.).
cognitive score ~ sleep quality + gender + age + ...
Sleep quality was measured and recorded in scores:0, 1, 2 or 3. How could I tell whether this variable should be treated as continuous or categorical? Is there any statistical analysis I can use? I tried to simply plot the X and Y to see if there's a linearity. However, this plot can still be interfered by gender, age or other variables (which I cannot add in the plot).