Hi! I hope you're all doing great.
I want to create monthly transition matrices based on the following data:
Date (end of month) ID (unique IDs) Category (from 1 to 5).
So, I need to count monthly transitions of IDs from one state to another and create matrices for each month.
I'm quite new to R, so I will be very grateful if someone could help me on this task.