03-25-2015 04:05 PM
Preparing for base certification.Tried this out is missing value...Does any number divided by 0 is assigned missing or any other concept behind this program???/
The following SAS program is submitted:
if 2 le years_service le 10 then
amount = 1000;
else amount = 0;
amount_per_year = years_service / amount
What is the value of the variable AMOUNT_PER_YEAR if an employee has been with the company for one
D. . (missing numeric value)
03-25-2015 05:19 PM
...Does any number divided by 0 is assigned missing or any other concept behind this program???/
Very easy to program and check.
If years_service was missing the result would be missing. If amount is missing the result would be missing. If Amount is 0 then the division is undefined and would be missing.