Skip to main content
edited tags
Link
ttnphns
  • 58.8k
  • 53
  • 287
  • 512
edited tags
Link
ttnphns
  • 58.8k
  • 53
  • 287
  • 512
Tweeted twitter.com/StackStats/status/872834773403795460
added 2 characters in body; edited tags; edited title
Source Link
Stephan Kolassa
  • 130.8k
  • 22
  • 265
  • 499

How does orderingcoding matter for categories?

So say the predictor variable is coded 1,2,3,4 for 4 different cities. Is this bad? I've heard that it only makes sense for things that have a natural ordering. Like number of stars for a movie or something. But in R, if you do factor(city)factor(city), it basically splits it up into 3 different dummy variables. So why does the distinction matter then?

How does ordering matter for categories?

So say the predictor variable is coded 1,2,3,4 for 4 different cities. Is this bad? I've heard that it only makes sense for things that have a natural ordering. Like number of stars for a movie or something. But in R, if you do factor(city), it basically splits it up into 3 different dummy variables. So why does the distinction matter then?

How does coding matter for categories?

So say the predictor variable is coded 1,2,3,4 for 4 different cities. Is this bad? I've heard that it only makes sense for things that have a natural ordering. Like number of stars for a movie or something. But in R, if you do factor(city), it basically splits it up into 3 different dummy variables. So why does the distinction matter then?

Source Link
Loading