Please help!
I have a simple, balanced longitudinal data set. I xtset the data and then run xtline. Each time I run xtline I am getting a completely different graph that does not reflect the summary data.
Any ideas why this is happening and how I can fix it??
Below is my code:
egen id = group(study_id)
sort id visit_month
drop study_id
xtset id visit_month
bysort arm visit_month: sum hfais_summary
xtline hfais_summary, recast(connected) i(id) t(visit_month)
bysort arm visit_month: sum wealthscore
xtline wealthscore, recast(connected) i(arm) t(visit_month)
bysort arm visit_month: sum social_support_sum
xtline social_support_sum, recast(connected) i(arm) t(visit_month)
Related Posts with HELP! xtline producing different graphs each run
Trying to use .txt without a delimiterHi, I am trying to use a file that does not have a delimiter. I do have a coding book though, so I …
Number of PanelsHi, I am struggling to find this answer online. Is there any benefit from adding extra panels to fi…
How to add reference lines (yline) for different ID?Hi all in Statalist, I need help with having two reference lines in the same plot. In our study, w…
Panel data and within individual effectsHi everyone, I have a panel dataset where I follow individuals for 12 waves (new_waves). What I am …
Generating the average of previous observations in a panelDear forum users, I have a question that I cannot seem to figure out by myself and I can't find an …
Subscribe to:
Post Comments (Atom)
0 Response to HELP! xtline producing different graphs each run
Post a Comment