Question: Problem 6 . You are provided with the following data set:Variables are day 1 , month 1 , year 1 , day 2 , month
Problem
You are provided with the following data set:Variables are day month year day month and yearI
Use MDY function to create the variable DOB from day month year variables and same to create the variable VISIT from day month year variables Calculate variable AGE by subtracting DOB from VISIT. Round it to the nearest year ie use ROUND function Calculate variable AGE by subtracting DOB from today's date use appropriate functions and return only integer part of the age.
Don't forget the output formats for date variables.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
