In SAS 9.4 scenario 2, one of the condition is to "remove observations with RestHR values that are greater than or equal to 70."
This condition should be written like:
where RestHR < 70;
or, the answer is correct and it should be like:
where RestHR <= 70;
I just want to check if I understand the question correctly or if i misunderstood the operation sigh.
Thanks!
Remove observations with RestHR values that are greater than or equal to 70
is the same as
Keep observations with RestHR values that are smaller than 70
isn't it?
So: where RestHR < 70;
Unless the where clause is used in a delete statement for example, in which case
Remove observations with RestHR values that are greater than or equal to 70
is written
where RestHR >= 70;
Remove observations with RestHR values that are greater than or equal to 70
is the same as
Keep observations with RestHR values that are smaller than 70
isn't it?
So: where RestHR < 70;
Unless the where clause is used in a delete statement for example, in which case
Remove observations with RestHR values that are greater than or equal to 70
is written
where RestHR >= 70;
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!
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.