Linear regression

Discuss statistics related things

by gabbyignacio » 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?
Posts: 3
Joined: Mon Jul 15, 2019 5:28 pm

by jonathon » Wed Jul 17, 2019 12:35 am


you *probably* don't want years as your dependent variable. depending on your research question, you probably want the number of trucks sold to be your dependent variable, and year and colour to be your explanatory variables.

this is probably a candidate for contingency tables, rather than linear regression.


User avatar
Posts: 1341
Joined: Fri Jan 27, 2017 10:04 am

Return to Statistics