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
Converting calendar dates to different quartersDear all, I've a question on how to convert calendar dates to different (i.e. fiscal) quarters in S…
Reshaping the Bruegel DatasetGood Day! I am currently trying to reshape the Bruegel Dataset. Currently it is comprised of a year…
Double - robust regression estimator in StataHi all - I am applying the command from Emsley, Lunt, Pickle and Dunn (The State Journal 2018 https…
Convert calendar date to fiscal quartersDear all, I've a question on how to convert calendar dates to different (i.e. fiscal) quarters in S…
Can parametric and non-parametric tests lead to different results?This may be a basic econometrics question but I cannot find an answer. I know under what conditions …
Subscribe to:
Post Comments (Atom)
0 Response to HELP! xtline producing different graphs each run
Post a Comment