BookmarkSubscribeRSS Feed
rebelde52
Fluorite | Level 6

Hello, 

 

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;
run;

Screenshot 2023-04-13 at 7.08.01 PM.png

2 REPLIES 2
whymath
Lapis Lazuli | Level 10
I guess you log may give some hints, could you take a screen shot on you log window?
ballardw
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.

 

SAS Innovate 2025: Call for Content

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 569 views
  • 0 likes
  • 3 in conversation