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
Grouping Columns using esttab and export .rtf file - helpHello is there a way to group different regression using esttab and not exporting to latex. I would …
Interpretation Climatic AnomaliesHello, I am having a question regarding the interpretation of a variable in my regression. I have p…
Times series plotHi, I’m trying to create a time series plot with the data below. I´m trying to create one plot for …
Generate age in paneldataHi I have already the birthday but I will like to create a birth-year. How can I do that? …
Irrational results from xtabond2- two step system GMM log-linear modelHi all, I am running xtabond2 on the model , and the command is: xtabond2 lVal l.lVal l(0/5).Init_a…
Subscribe to:
Post Comments (Atom)
0 Response to Trend graphs for repeated cross-sectional data
Post a Comment