Because my independent variable (average weekly work hours) affects the outcome variable in a very curvilinear manner, I want to create a categorical variable and include it in the regression as several dummy variables. The problem is how to decide how many categories to create, what categories exactly and which one to use as the reference? Are there any guidelines about this?
PS: I am doing a longitudinal analysis with fixed- and random-effects.