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
Hausman-Taylor estimator for binary dependent variableHi all, I am a business student who has had some introductory econometirc courses and has some basi…
Interpreting VEC output with ranks higher than 1Dear STATA users, Although it feels like a simple question, I have spent a lot of time reading STAT…
2 period balanced panel with continuous and numeric dependent variables --> Which estimator to use?Dear Forum, I hope you are all doing well. I am really struggling with some content of my econometr…
Estimate coefficients to predict out of sample for the excluded quarter.Hi, I want to evaluate the model’s (reg lnUnmprate lnInflation lnFedfunds) ability to predict out of…
Identifying variables that serve as unique identifiersHello everyone I want to write a program that accepts numeric and string variables as input, that …
Subscribe to:
Post Comments (Atom)
0 Response to Trend graphs for repeated cross-sectional data
Post a Comment