I am working in R with a database that contains variables as seasons, months, days, temperature, humidity and cnt (integer values). I want to compute a linear model using cnt as the dependent variable and the others as independents. I know seasons, months and days are ordinal variables, but they can be represented as numbers.
Thus, my question is, to compute a linear model when should I transform my variables into ordinal and when is it possible to use them as integers?
- cnt: 100,50,230,... (integer)
- seasons: 1 to 4 (ordinal or integer?)
- month: 1 to 12 (ordinal or integer?)
- day: 1 to 7 (ordinal or integer?)
- temperature: 12.56 , 13.21, ... (numerical)
- humidity: 80.1 , 79.5 , ... (numerical)
Data source: DB day.csv from Bike Sharing Dataset Data Set.