Dear Stata Experts, I am a not-Stata-savvy researcher. My simple goal is to produce a time-graph overlaid with two curves, one curve for each day. I have transformed my data to the long format. The entire dataset and the problem can be summarised with this small dataset with just the medians of the population:
Medianvalue Id Time
1.00 1 1000
0.97 1 1002
0.90 1 1004
0.95 1 1006
1.00 1 10000
0.93 1 10001
0.91 1 10002
0.88 1 10004
0.92 1 10006
The 1000-numbers are from one day and the 10000-numbers are from a second day, and each rightmost digit corresponds to same hour of the day. I did something to my patients on the second day (the "10000-day") so that already at 1 and 2 hours (10001; 10002) there was quick decrease in malignant cells (disappearing faster). I would like to produce a simple graph where the 10000 and 1000 are the respective origin at the x axis. Please note that there's an extra measurement day 2 (10001), but I hope that wouldn't be a problem.
I simply don't understand to overlay these two curves in one graph (see attachment)
Thank you in advance
BE Wahlin, MD PhD
Related Posts with Please help with overlaying xtline.
Creating spells of 3 months.Dear All, I am using prescription drug claims data and want to identify spells of 3 months of contin…
Reshape and group data by highest value of variablesHi Statalisters I am working on a somewhat intricate reshape of my data set. I have done some resea…
Question on looping over files in a directory using local and foreachDear Statalists, Recently I am attempting to deal with some .dta files in a local directory on the …
Help for data with multiple quarterly observationsHello and sorry if this question is obvious or incorrect, I have quarterly data from 2007q1 to 2010…
Question on Implementation of First-Difference Regression and InterpretationDear All, I am trying to estimate the effect of tariffs changes on employment within firms. Thus, I…
Subscribe to:
Post Comments (Atom)
0 Response to Please help with overlaying xtline.
Post a Comment