Hi,
I'm a student and I'm working with a repeated cross-sectional dataset. I would like to create some simple graphs with the variable "WAVE", which identifies the year of the survey, on the x-axis as a time variable. On the y-axis, I would use some categorical variable such as "SODLAV" which is a variable with 4 categories describing the satisfaction of the respondent about his job. The idea is to plot the change over time using some simple indicator of well-being.
The time variable, WAVE, goes from 1993 to 2018. I created this variable as a categorical var.
Since all the observations are different I can't use the dataset as a panel. Also, it's not a time series because I have repeated time values.
I tried using the "line" command [line WAVE SODLAV], but I get an unreadable plot, something like that:
Array
I think the issue is that STATA is reading "WAVE" as a simple categorical variable, that's why there are the frequencies of WAVE on the graphs (?). I would like to have a line for each category of the y-variable (in this case, SODLAV, so 4 lines) and see how it changes through the years.
Are there some commands or options that I can use? I don't know if it's a simple issue or if there is something I have to change on my data.
Related Posts with Trend graphs for repeated cross-sectional data
putdocx with multi-level modelsIs there a way to export the both the coefficient table as well as the random-effects parameters tab…
Diff in Diff with matchingDear Statalisters, I’m working with panel data that contains observations for 8000 firms for the pe…
Question about contrast and marginDear scientist, If I want to compare the mean of different variable levels between two groups, afte…
add double quotes to valuesSomeone asked how to remove double quotes from a string, but I want to add double quotes to string v…
Table 2 Presenting Findings Chi2 TableMy team is looking to program publishing quality Table 2 placed into a word document with APA format…
Subscribe to:
Post Comments (Atom)
0 Response to Trend graphs for repeated cross-sectional data
Post a Comment