I have got data on Pressure Injuries. Each row tells me how many pressure injuries each person has. Then I also have variables such as toe, foot, hand, and so on, which specify the stage of pressure injury. I want to break these variables apart but I am missing something. Current data is as follows:

ID No of PI Foot1 Arm Hand

1 1 Stage1

2 3 Stage 3 Stage 3 Stage 1

3 2 Stage 4 Stage 1

I want the data to look like:

D No of PI PI 1 Location PI 1 Stage PI 2 Location PI 2 stage

1 1 Foot 1 Stage1 Arm Stage 1

2 3 Foot 1 Stage 4 Hand Stage 2

3 2 Foot 1

I have tried using the recode and compute function and it works for the first pressure injury. But it doesn't seem to work for the second and so on.

Can you please offer suggestions, thanks in advance .

More Prachi Kaistha's questions See All
Similar questions and discussions