I have a data frame with 1 vector of integers and 1 as a character factor like so:
I have created a linear model that shows a relationship between age and party affiliation. I now want to determine the best bins of ages (50-59, 60-69, etc..) that can explain party affiliation. Is there an R package/model that can help me do that?