I saw the figure in the journal article "Results From the IQ-CSRC Prospective Study Support Replacement of the Thorough QT Study by QT Assessment in the Early Clinical Phase ". Can we do this kind of plot in SAS? where The predicted effect on DDQTcF using concentration/QTc effect models. The solid black line with gray shaded area denotes the model-predicted mean placebo-adjusted DQTcF with 90% CI as a function of plasma concentration. The horizontal red lines with tick marks show the range of plasma concentrations divided into deciles. Red squares with vertical bars denote the observed arithmetic means and 90% CIs for the placebo-adjusted DQTcF within each plasma concentration decile.
I want to do the same plot in SAS. any suggestion?
Here is some example that may get you started.
data work.class; set sashelp.class; error = rand('integer',15); yupper = weight+error; ylower = weight-error; run; Proc sgplot data=work.class; /* simple linear regression with confidence limit band for the mean and suppress the individual points */ reg x=height y=weight / clm nomarkers ; /* horizontal reference line at 80*/ refline ( 80) ; /* place error bars around points*/ scatter x=height y=weight / yerrorupper=yupper yerrorlower=ylower ; run;
However if you want the regression to extrapolate past the values in the data you will likely need to run your data through a regression procedure that will do that.
Give us a link to the article. Or scan the plot and insert it into your reply here using the "Insert Photos" icon.
"Results From the IQ-CSRC Prospective Study Support Replacement of the Thorough QT Study by QT Assessment in the Early Clinical Phase"
It's really too small for us to make any use of. Make the scan larger.
Sorry. I was having some difficulty to attach the figure. please check the below figure.
So, the answer is YES, this can be done via SAS PROC GPLOT.
Show us a portion of your actual data, provided as SAS DATA step code following these instructions. Do not provide a screen capture or an attachment.
I dont have any specific data yet. Any sample data will work for me where there is error bar with the predicted data.
Here is some example that may get you started.
data work.class; set sashelp.class; error = rand('integer',15); yupper = weight+error; ylower = weight-error; run; Proc sgplot data=work.class; /* simple linear regression with confidence limit band for the mean and suppress the individual points */ reg x=height y=weight / clm nomarkers ; /* horizontal reference line at 80*/ refline ( 80) ; /* place error bars around points*/ scatter x=height y=weight / yerrorupper=yupper yerrorlower=ylower ; run;
However if you want the regression to extrapolate past the values in the data you will likely need to run your data through a regression procedure that will do that.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.