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 2024

Innovate_SAS_Blue.png

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
  • 302 views
  • 0 likes
  • 3 in conversation