Dear all,
Brief background. Some areas in a resort have employed a new service strategy. The main goal is to see if this new service reduce the number of guest complaints. So the aim is to compare rates of complaints before and after the “program”.
I have 2 datasets. One is the area movement of the guests (a guest can move to different rooms/areas during their stays) and a complaint dataset. The areas started the new service program at different times. I used the movement data to flag guests that stay in the program areas after the start date of the program so the moving file only show movement that happened in the program areas after the start date of the program (participants).
I could flag which complaints happened before or after just using the start date of the program, the problem is that after the program a guest can be moved to an non-program area, so if the complaint happened during that period (non program area), we should not count that complaint. For example, this guest was in a non-program area during 17 and 18 of may (after the start date of the program) and report a complaint. Then we was sent again to a program area.
What would be the right merge strategy for this task? Is there a way to merge based on time parameters so the first 3 complaints happened before the program and complaint 4 correspond to the second movement and complaint 6 correspond to the third movement? Or perhaps just append the datasets and then work my way to assign the complaints to the specific movements?
Thank you
Brief background. Some areas in a resort have employed a new service strategy. The main goal is to see if this new service reduce the number of guest complaints. So the aim is to compare rates of complaints before and after the “program”.
I have 2 datasets. One is the area movement of the guests (a guest can move to different rooms/areas during their stays) and a complaint dataset. The areas started the new service program at different times. I used the movement data to flag guests that stay in the program areas after the start date of the program so the moving file only show movement that happened in the program areas after the start date of the program (participants).
I could flag which complaints happened before or after just using the start date of the program, the problem is that after the program a guest can be moved to an non-program area, so if the complaint happened during that period (non program area), we should not count that complaint. For example, this guest was in a non-program area during 17 and 18 of may (after the start date of the program) and report a complaint. Then we was sent again to a program area.
Stay | Area | In | Out | Programdate |
33 | Lower1 | 12-May-16 | 13-May-16 | 9-May-16 |
33 | Fac1 | 13-May-16 | 16-May-16 | 9-May-16 |
33 | Lower1 | 19-May-16 | 30-Jun-16 | 9-May-16 |
Stay | ComplaintID | Date |
33 | 1 | 10-Apr-16 |
33 | 2 | 22-Apr-16 |
33 | 3 | 28-Apr-16 |
33 | 4 | 15-May-16 |
33 | 5 | 17-May-16 |
33 | 6 | 25-May-16 |
What would be the right merge strategy for this task? Is there a way to merge based on time parameters so the first 3 complaints happened before the program and complaint 4 correspond to the second movement and complaint 6 correspond to the third movement? Or perhaps just append the datasets and then work my way to assign the complaints to the specific movements?
Code:
clear input byte Stay str6 Area int(In Out Programdate) 33 "Lower1" 20586 20587 20583 33 "Fac1" 20587 20590 20583 33 "Lower1" 20593 20635 20583 end format %tddd-Mon-YY In format %tddd-Mon-YY Out format %tddd-Mon-YY Programdate
Code:
clear input byte(Stay ComplaintID) int Date 33 1 20554 33 2 20566 33 3 20572 33 4 20589 33 5 20591 33 6 20599 end format %tddd-Mon-YY Date