DATA Step, Macro, Functions and more

Proc means only continuous variables

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 131
Accepted Solution

Proc means only continuous variables

Hello:

 

Would someone be able to share if it's possible to specify proc means to only output for continuous variables in a dataset? If so, how?

 

Thank you in advance!

 


Accepted Solutions
Solution
‎09-25-2015 06:23 AM
Super User
Posts: 17,868

Re: Proc means only continuous variables

There is no way to define a 'continuous' variable. You can specify numeric vs character, but ordinal/categorical variables may be numeric as well. You can use variable short hand notation to list variables in a multiple ways, see the documentation:

https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695105.htm

View solution in original post


All Replies
Solution
‎09-25-2015 06:23 AM
Super User
Posts: 17,868

Re: Proc means only continuous variables

There is no way to define a 'continuous' variable. You can specify numeric vs character, but ordinal/categorical variables may be numeric as well. You can use variable short hand notation to list variables in a multiple ways, see the documentation:

https://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a000695105.htm
Frequent Contributor
Posts: 131

Re: Proc means only continuous variables

Thank you, Reeza!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 209 views
  • 1 like
  • 2 in conversation