I am currently looking at some data that I am using for a logit. I have the logit working just fine, however, I am being asked to break out the data into deciles and then potentially do things with those. To that end, I imagine I need to turn the deciles I create into variables (e.g., decile 1, decile 2...). My question is, how can I turn the deciles I create into variables that I can then do something with?
I've tried Googling but I can only get how to break things down into quantiles using quantile(x, probs = seq (0,1,1/10))
function and also using dplyr
. I can get the deciles just fine, but I can't find anything on how to turn those into anything useful.
Thanks in advance!