BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
nobel1154
Fluorite | Level 6

nobel1154_0-1603285051565.png

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?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

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.

View solution in original post

9 REPLIES 9
PaigeMiller
Diamond | Level 26

Give us a link to the article. Or scan the plot and insert it into your reply here using the "Insert Photos" icon.

--
Paige Miller
nobel1154
Fluorite | Level 6

nobel1154_0-1603285620677.png

"Results From the IQ-CSRC Prospective Study Support Replacement of the Thorough QT Study by QT Assessment in the Early Clinical Phase"

PaigeMiller
Diamond | Level 26

It's really too small for us to make any use of. Make the scan larger.

 

--
Paige Miller
nobel1154
Fluorite | Level 6

Sorry. I was having some difficulty to attach the figure. please check the below figure. 

figure.gif

PaigeMiller
Diamond | Level 26

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.

--
Paige Miller
nobel1154
Fluorite | Level 6

I dont have any specific data yet. Any sample data will work for me where there is error bar with the predicted data. 

ballardw
Super User

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.

nobel1154
Fluorite | Level 6
Thanks a lot, this is what i was looking for.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 9 replies
  • 884 views
  • 0 likes
  • 3 in conversation