Dear all,
I am not an expert in stata, since I am just a student, so if my problem might seem really simple to you I would still really appreciate feedback and help.
So my issue is this:I am working on a dietary score, which I have already computed into one single variable. Now I would like to have a variable that shows me those adhering the most (scoring highest) and those adhering the least (scoring the lowest). But I don't want this variable to be binomial but categorial, showing me quantiles of adherence (ex. 25, 50, 75, 85, etc).
I have tried playing around with the commands xtiles and pctiles but either they don't show me what I want or I have computed my code wrong...
Also, I can't make the command "tabulate varlist, row" because the dataset is large and stata sends me an error that there are too many observations..
If anyone has any recommendations please let me know! Thank you!!
I am not an expert in stata, since I am just a student, so if my problem might seem really simple to you I would still really appreciate feedback and help.
So my issue is this:I am working on a dietary score, which I have already computed into one single variable. Now I would like to have a variable that shows me those adhering the most (scoring highest) and those adhering the least (scoring the lowest). But I don't want this variable to be binomial but categorial, showing me quantiles of adherence (ex. 25, 50, 75, 85, etc).
I have tried playing around with the commands xtiles and pctiles but either they don't show me what I want or I have computed my code wrong...
Also, I can't make the command "tabulate varlist, row" because the dataset is large and stata sends me an error that there are too many observations..
If anyone has any recommendations please let me know! Thank you!!
Comment