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.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2 replies
  • 900 views
  • 0 likes
  • 3 in conversation