Open shijiaSMH opened 6 months ago
Can we make this function a bit more flexible to allow for creation of quintiles/deciles etc. as well? I.e., the function should accept an input (could be numeric, e.g., 4 for quartiles, 5 for quintiles etc.) and then the probs/labels are adjusted accordingly.
Thx Anne, your suggestion makes sense, quickly editing this issue right now :)
Motivation
Continuous variables are commonly needed to be broken down into quartiles/quintiles/deciles for descriptive analysis.
Skeleton code ideas
Quartile ex code - quartiles