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
How to omit one category of margins from marginsplotDear Statalisters, I have the following easy issue to solve. I would like to plot margins of employ…
Loops within loopsDear everyone, I have trouble when create a loop to generate a new variable for my dataset. My data…
Time-series regression loop (approximately 250 regressions) and saving their coefficientsHi all, I've performed a time-series regression loop by using the following code (approximately 250…
dummy variable in the two-way fixed effect modelI want to regress two-way fixed effect model with dummy variable using difference . the model look l…
Error r(900) - no room to add variables, up to 2048 variables are allowed, but I'm only using 340 variablesHello, I'm trying to add 9 variables (w_racel) for each wave of data (waves a to i) to a large data…
Subscribe to:
Post Comments (Atom)
0 Response to HELP! xtline producing different graphs each run
Post a Comment