Hello!
I'm very new at using Stata (my background is mostly SPSS).
I'm trying to do the following:
Create a graph that plots the mean of a variable (called DRS) over four time points (called data_point), by location (called LTCH) and by gender.
I would like the y axis to be the mean of DRS for each location and gender and the x axis to be data point (there is a variable called data point that tells me which time point each score is from 1-4), and I would like to have 6 lines:
Location 1 Male
Location 1 Female
Location 2 Male
Location 2 Female
Location 3 Male
Location 3 Female
So y is mean of DRS, x is data_point, and the lines are a mix of location and gender.
The two main things causing me issues is I don't know how to get it to do the 6 lines, and I don't know how to get it to do the MEAN of the DRS.
I also want to set a specific scale for the y axis (0 to 14)
If anyone can help or direct me to resources that will help that would be great. I tried the "Visual overview for creating graphs" and read the manual suggestions but I can't seem to find the answer to my question.
Thank you!
I'm very new at using Stata (my background is mostly SPSS).
I'm trying to do the following:
Create a graph that plots the mean of a variable (called DRS) over four time points (called data_point), by location (called LTCH) and by gender.
I would like the y axis to be the mean of DRS for each location and gender and the x axis to be data point (there is a variable called data point that tells me which time point each score is from 1-4), and I would like to have 6 lines:
Location 1 Male
Location 1 Female
Location 2 Male
Location 2 Female
Location 3 Male
Location 3 Female
So y is mean of DRS, x is data_point, and the lines are a mix of location and gender.
The two main things causing me issues is I don't know how to get it to do the 6 lines, and I don't know how to get it to do the MEAN of the DRS.
I also want to set a specific scale for the y axis (0 to 14)
If anyone can help or direct me to resources that will help that would be great. I tried the "Visual overview for creating graphs" and read the manual suggestions but I can't seem to find the answer to my question.
Thank you!
Comment