Hi,
I'm wanting to compare continuous values before a stenting procedure, and continuous values after this procedure. Patients with artery narrowing have this assessed by measuring the velocity of blood through this narrowing (peak systolic velocity (PSV)). I have 2 main cohorts of patients within my population: ones with calcified arteries, and ones without calcium deposits in their arteries. I want to display these differences similar to this following graph published in this paper:

(Published in Mitchell EL, Chang EY, Landry GJ, Liem TK, Keller FS, Moneta GL. Duplex criteria for native superior mesenteric artery stenosis overestimate stenosis in stented superior mesenteric arteries. Journal of Vascular Surgery. 2009 Aug;50(2):335–40. doi:10.1016/j.jvs.2008.12.071). Note, the authors created this using SPSS.
This is my data:
The calcification status is denoted by calc; present (1) and absent (0), and pre and post denote the pre-stenting PSV and post-stenting PSV.
The following code:
brings this error: variables calc and _variables do not uniquely identify the observations
r(459);
I came across -pairplot-
And inputted the following:
which generated the following plot:

My other idea is if I rearrange the data so that all PSVs are in a single column, have a neighbouring column denote if it's a pre or post value, generate a simple scatterplot with calcified patients marked as an X and non-calcified patients marked as an O, and just manually connect the pre and post PSVs. But before I try that I want to put out a final feeler if there's a way to do all this through Stata! My end goal here is to either generate a single plot with calc/non-calc denoted with Xs and Os and with say a blue line for calc and red for non calc patients, or have a graph similar to the one published where the x-axis is longer and the pre and post values for calc and non-calc are shown side by side.
Thanks!
I'm wanting to compare continuous values before a stenting procedure, and continuous values after this procedure. Patients with artery narrowing have this assessed by measuring the velocity of blood through this narrowing (peak systolic velocity (PSV)). I have 2 main cohorts of patients within my population: ones with calcified arteries, and ones without calcium deposits in their arteries. I want to display these differences similar to this following graph published in this paper:
(Published in Mitchell EL, Chang EY, Landry GJ, Liem TK, Keller FS, Moneta GL. Duplex criteria for native superior mesenteric artery stenosis overestimate stenosis in stented superior mesenteric arteries. Journal of Vascular Surgery. 2009 Aug;50(2):335–40. doi:10.1016/j.jvs.2008.12.071). Note, the authors created this using SPSS.
This is my data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte calc int(pre post) 0 600 372 1 380 300 0 647 244 1 472 112 0 336 276 0 360 420 1 500 500 1 455 217 0 250 100 0 500 0 0 600 500 0 350 137 end
The calcification status is denoted by calc; present (1) and absent (0), and pre and post denote the pre-stenting PSV and post-stenting PSV.
The following code:
Code:
graph dot (asis) pre post, over(calc)
r(459);
I came across -pairplot-
And inputted the following:
Code:
pairplot pre post calc
My other idea is if I rearrange the data so that all PSVs are in a single column, have a neighbouring column denote if it's a pre or post value, generate a simple scatterplot with calcified patients marked as an X and non-calcified patients marked as an O, and just manually connect the pre and post PSVs. But before I try that I want to put out a final feeler if there's a way to do all this through Stata! My end goal here is to either generate a single plot with calc/non-calc denoted with Xs and Os and with say a blue line for calc and red for non calc patients, or have a graph similar to the one published where the x-axis is longer and the pre and post values for calc and non-calc are shown side by side.
Thanks!
Comment