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.
Linearity assumption in LogisticHi statalist. I wonder during logistic regression, do I have to check linearity assumption between c…
Creating a variable: TRUE or FALSE based on date within two other dates for each participant of of which there are multiple ID valuesHello, my apologies for not using dataex. I am using healthcare data so I have created an example be…
net install lpdensity, error r(677)Hi, I use rddensity in Stata and already have rddensity installed on my computer but then a error r…
How to get a graph line with multiple variables in the x-axis?Hi everyone, I have a tricky question regarding the line graph with multiple variables. My problem…
Looping and importing excel sheetsHi all, I am importing 12 files from excel. These worksheets have common name starting from II1 to …
Subscribe to:
Post Comments (Atom)
0 Response to Please help with overlaying xtline.
Post a Comment