I have a dataset of book sales by rank and the color of the cover. I would like to find a relationship between the rank of the book and the color of the cover.
I'd like to know how to do this analysis in R.
This is how the dataset looks like:
Book | MainColor | SecondaryColor | Ranking |
---|---|---|---|
Book 1 | White | Black | 1 |
Book 2 | White | Black | 2 |
Book 3 | Yellow | Red | 3 |
Book 4 | Yellow | Black | 4 |
Book 5 | Pink | White | 5 |
Book ... | ... | ... | ... |
I'm new to stackexchange and statistics.