BookmarkSubscribeRSS Feed
sanyam13
Fluorite | Level 6

Proc Univariate data = sashelp.class ;

class sex ;

var age ;

run;

 

Proc Univariate is an analysis for 1 variable then how come it is still running for 2 variables? Here sex is qualitative and age is quantitative. why it is not giving any error ? 

1 REPLY 1
PeterClemmensen
Tourmaline | Level 20

It does not run for two variables. It runs separate analyses for each level of the variable sex. Since sex has two levels: M and F, you see two separate analyses in your output. 

 

Similarly, the species variable in sashelp.iris has three levels, so the below code returns tree levels of analysis

 

proc univariate data = sashelp.iris;
class species;
var sepallength;
run;

Whether you're already using SAS Event Stream Processing or thinking about it, this is where you can connect with your peers, ask questions and find resources.

 

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 633 views
  • 1 like
  • 2 in conversation