SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jonatan_velarde
Lapis Lazuli | Level 10

Hi my friends:

I have one question, as always haha:

I have many data to use into Proc GLM, and i need to exclude some data (Discrepant data) from the tail and head, so im trying to use WHERE statement like that:

Proc GLM:

Where Polen_Gr < 250; (meaning that i'm gonna use just data under 250)

And i would like to Add that i want to use data above 100 and i dont know how to do it

Resuming: I JUST NEED the interval "X"

100>X>250


Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

Did you try what you posted?

These three different methods should all do the same thing.

where 100 < Polen_Gr < 250 ;

where (100 < Polen_Gr ) and (Polen_Gr < 250) ;

where 100 < Polen_Gr ;

where also Polen_Gr < 250 ;

View solution in original post

3 REPLIES 3
AskoLötjönen
Quartz | Level 8

You can use where clause in data= -clause

Proc Glm data=have(where=(Polen_gr lt 250));

Astounding
PROC Star

To apply both boundaries:

where 100 < Polen_Gr < 250;

Tom
Super User Tom
Super User

Did you try what you posted?

These three different methods should all do the same thing.

where 100 < Polen_Gr < 250 ;

where (100 < Polen_Gr ) and (Polen_Gr < 250) ;

where 100 < Polen_Gr ;

where also Polen_Gr < 250 ;

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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