Hey Statalist community,
I'm working with a dataset of monthly survey responses and I'm looking to create a time series (line chart) of various percentiles (p10,p25,p50,p75,p90) of one of the variables. I have a variable (YEAR_MONTH) which indicates the survey year and month (Format: YYYYMM) the response was collected from and any given month could have around 200 responses. I'm able to create a table using tabstat with YEAR_MONTH as the rows and the percentiles as the columns for my variable but I can't figure out how to convert this data into an actual timeseries chart. I'm thought about creating a new data set but that just seems like a very backwards way of doing it.
Please help.
I'm working with a dataset of monthly survey responses and I'm looking to create a time series (line chart) of various percentiles (p10,p25,p50,p75,p90) of one of the variables. I have a variable (YEAR_MONTH) which indicates the survey year and month (Format: YYYYMM) the response was collected from and any given month could have around 200 responses. I'm able to create a table using tabstat with YEAR_MONTH as the rows and the percentiles as the columns for my variable but I can't figure out how to convert this data into an actual timeseries chart. I'm thought about creating a new data set but that just seems like a very backwards way of doing it.
Please help.
Comment