Linear regression

Discuss statistics related things
Post Reply
gabbyignacio
Posts: 3
Joined: Mon Jul 15, 2019 5:28 pm

Linear regression

Post 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?
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Linear regression

Post 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
Post Reply