Linear regression
Posted: Tue Jul 16, 2019 1:43 pm
I'm trying to make a linear regression with years as the dependent variable versus different categories in a variable (let's say different colors: red, white, blue). For example, I want to make a regression of the amounts of red, white, and blue trucks sold in the past 15 years (years are ordinal). My data isn't just Year & Count of Red/Blue/White in that specific year. It's like 60 rows of red in 2012, 49 rows of red in 2013, etc. Everything is mixed up. How would I do this?