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
Comparing regression coefficients across groups in presence of fixed effectsHey I have some company data and i run a panel regression with firm fixed effects. I have a list of …
Group categorical variables into a groupHello, for my Master thesis I am at the step of preparing the data to run a multinomial logit model…
collapsing the expanded rows keeping only oneHi I have expanded my data making 11 rows for some reasons as below. Now, I just want to keep one ro…
Counting Distinct Observations: number of new investments of specific VCs in an industry 5 years prior to the focal observationDear All, I am using Stata 15.0 I need to calculate how often a VC firm X (variable name: FirmName…
regression to estimate beta per companyHi, I'm quite new to stata and face a problem. I want to use a for loop to run through my variables…
Subscribe to:
Post Comments (Atom)
0 Response to HELP! xtline producing different graphs each run
Post a Comment