BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cedge113
Calcite | Level 5

I'm new to SAS (using the university edition) and am having issues with using Linear Regression.

I loaded a CSV file and then in Tasks and Utilities > Tasks > Statistics > Linear Regression I selected WORK.BP (BP = filename) for my data. When I try to select my dependent variable SAS says "No columns are available."

The CVS file appears to have loaded correctly and has 2 columns so I can't figure out what the issue is.

 

Thanks for the help.

 

This is the code I used for loading the file:

 

data BP;
infile '/folders/myfolders/BP.csv' dlm =',' firstobs=2;
input BP  $Pressure$;
run;

 

And this is what the output looks like 

1 ACCEPTED SOLUTION

Accepted Solutions
Astounding
PROC Star

Remove the dollar signs from the INPUT statement.  They are making both of your variables character.  Since regression requires numeric variables, there are no variables that can be used for regression.  (Yes, there are cases where a character variable is used to create dummy variables, but that is not the case here.)

View solution in original post

3 REPLIES 3
Astounding
PROC Star

Remove the dollar signs from the INPUT statement.  They are making both of your variables character.  Since regression requires numeric variables, there are no variables that can be used for regression.  (Yes, there are cases where a character variable is used to create dummy variables, but that is not the case here.)

cedge113
Calcite | Level 5

Thank you for the help!

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

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 3073 views
  • 3 likes
  • 3 in conversation