Hi everyone, I'm struggling with my dataset and I don't know how I can fix it. Here you see a sample of the data:
The first column is income while the second one shows the frequency. I would like to calculate the mean, first and third quantile (and after that a box plot).
However, how should I let STATA know it is a frequency so it doesn't not only plot income without taking the different frequencies into account /or how can I make one dataset with 48 times 1 as value, and 57 times 3 etc ?
Thank you very much!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte Inkomensgroep int Allehuishoudens 1 48 3 57 5 58 7 65 9 71 11 102 13 206 end
However, how should I let STATA know it is a frequency so it doesn't not only plot income without taking the different frequencies into account /or how can I make one dataset with 48 times 1 as value, and 57 times 3 etc ?
Thank you very much!
Comment