we have visit, visit_date, and pt (patient) variables or fields are there pt visit visit_date 10005 visit 1 01-jan-2020 10005 visit 2 09-jan-2020 10005 visit 3 11-jan-2020 10005 visit 4 02-jan-2020 10005 visit 5 03-jan-2020 requirement is the date entered is wrong, the visit 1 date always smaller than visit 2 , same way visit 2 dae smaller than visit 3 but here visit 4 date is date shd be gretaer than visit 3 .. how to find these type of patient information date information in our raw data
create a new variable and use lag(visit_date) and if it is first visit change the value of new variable to missing value. after this subtract visit_date with your lag(visit_date) variable and depending on difference you can identify whether your visit dates values are correct or not.
THank you for showing and explaining common mistakes
Thank you so much for uploading this video. Amazing explanation in a crisp video.
Thank You So much Kiran...
again Very nice video on Macros please make more such videos :)
Thank you so much for your excellent presentation.
Very good explanation. Kindly make video on applying formats on Macro variables.
Thanks for your efforts.
Really good videos and nice explanation...Would it be possible to share the videos related to Format CNTLIN = and CNTLOUT= options.
we have visit, visit_date, and pt (patient) variables or fields are there
pt visit visit_date
10005 visit 1 01-jan-2020
10005 visit 2 09-jan-2020
10005 visit 3 11-jan-2020
10005 visit 4 02-jan-2020
10005 visit 5 03-jan-2020
requirement is the date entered is wrong,
the visit 1 date always smaller than visit 2 , same way visit 2 dae smaller than visit 3
but here visit 4 date is date shd be gretaer than visit 3 ..
how to find these type of patient information date information in our raw data
create a new variable and use lag(visit_date) and if it is first visit change the value of new variable to missing value. after this subtract visit_date with your lag(visit_date) variable and depending on difference you can identify whether your visit dates values are correct or not.