I usually recommend drawing this out on a number line. So draw a line and then show your condition.
Ensure that all values for variable Kilograms are between 40 and 200, inclusively.
Between 40 and 200, inclusively means the end points are included in the interval. So if you're 39.99 you're outside the interval but if you're 40 you're in the interval.
IF KG_variable >= 40 AND KG_variable <=200 then do;
This is an AND condition, not an OR condition.
@veda8 wrote:
Ensure that all values for variable Kilograms are between 40 and 200, inclusively.
what does the word inclusive mean here
should it be this option 1) ,if so why?
if Kilograms ge 40 or Kilograms le 200 then do;
is this correct?
or should i write kilograms > 40 or kilograms =40 or kilograms =200 or kilograms < 200 them do;