Page 1 of 1

Linear regression

Posted: Tue Jul 16, 2019 1:43 pm
by gabbyignacio
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?

Re: Linear regression

Posted: Wed Jul 17, 2019 12:35 am
by jonathon
hi,

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.

cheers

jonathon