SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
viollete
Calcite | Level 5

Hello,

 

I have a data that contains weekly time periods, observed value, predicted value and its 95% confidence intervals. Example:

 

Time observed predicted l95 u95

02jan2017 292 252 231 293

09jan2017 323 330 310 351

16jan2017 323 319 299 340

23jan2017 324 322 302 342

30jan2017 327 322 301 342

 

i want to plot a graph with observed and predicted plot as a lines and confidence interval as a grey filled plot. How could i do it?

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

This example is pretty much what you’re trying to do. 

https://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#a003155743.htm

 


@viollete wrote:

Hello,

 

I have a data that contains weekly time periods, observed value, predicted value and its 95% confidence intervals. Example:

 

Time observed predicted l95 u95

02jan2017 292 252 231 293

09jan2017 323 330 310 351

16jan2017 323 319 299 340

23jan2017 324 322 302 342

30jan2017 327 322 301 342

 

i want to plot a graph with observed and predicted plot as a lines and confidence interval as a grey filled plot. How could i do it?

 

Thank you.


 

View solution in original post

1 REPLY 1
Reeza
Super User

This example is pretty much what you’re trying to do. 

https://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#a003155743.htm

 


@viollete wrote:

Hello,

 

I have a data that contains weekly time periods, observed value, predicted value and its 95% confidence intervals. Example:

 

Time observed predicted l95 u95

02jan2017 292 252 231 293

09jan2017 323 330 310 351

16jan2017 323 319 299 340

23jan2017 324 322 302 342

30jan2017 327 322 301 342

 

i want to plot a graph with observed and predicted plot as a lines and confidence interval as a grey filled plot. How could i do it?

 

Thank you.


 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1028 views
  • 0 likes
  • 2 in conversation