BookmarkSubscribeRSS Feed
Fluorite | Level 6



I am trying to run a regression between my concentration and cases using sgplot but when I do I get a blank graph. 


I was able to put them together in a time series graph using sgplot and scatter. 


What could it be? 


below is my code and image. 


Proc sgplot data=FinalOC;
reg x=cases y=concentration;

Screenshot 2023-04-13 at 7.08.01 PM.png

Lapis Lazuli | Level 10
I guess you log may give some hints, could you take a screen shot on you log window?
Super User

@whymath wrote:
I guess you log may give some hints, could you take a screen shot on you log window?

Actually better is to copy the TEXT from the log window, on the forum open a text box using the </> icon above the message window and paste the text. The text box retains formatting that the message window will remove.

Text is better as it allows us to copy relevant pieces of the report and point out what the messages may mean and/or modify the code.

INCLUDE the all the code and messages related to the procedure call.




Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 3 in conversation