Dear All
I am trying to get a proportion values with my data, but I am not sure if I need to generate new variables. In summary I want the proportion of single prolapse means when only one of the scallop is positive (PA1 or PA2 or PA3 or PP1 or PP2 or PP3 are =1), bileaflet prolpase (when PA1 or PA2 or PA3 are present (=1) & PP1 or PP2 or PP3 are also present, and multiple scallop prolapse when there are more than one scallop positive independiently if belong to leaflet A or P, eg PA1=1 and PA2=1 or PA3=1 and PP1=1 etc..
dataex PA1 PA2 PA3 PP1 PP2 PP3
I am trying to get a proportion values with my data, but I am not sure if I need to generate new variables. In summary I want the proportion of single prolapse means when only one of the scallop is positive (PA1 or PA2 or PA3 or PP1 or PP2 or PP3 are =1), bileaflet prolpase (when PA1 or PA2 or PA3 are present (=1) & PP1 or PP2 or PP3 are also present, and multiple scallop prolapse when there are more than one scallop positive independiently if belong to leaflet A or P, eg PA1=1 and PA2=1 or PA3=1 and PP1=1 etc..
dataex PA1 PA2 PA3 PP1 PP2 PP3
Code:
clear input byte(PA1 PA2 PA3 PP1 PP2 PP3) 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 1 end label def Detectado 0 "No", modify label def Detectado 1 "Si", modify label values PA1 Detectado label def Detectado 0 "No", modify label def Detectado 1 "Si", modify label values PA2 Detectado label def Detectado 0 "No", modify label def Detectado 1 "Si", modify label values PA3 Detectado label def Detectado 0 "No", modify label def Detectado 1 "Si", modify label values PP1 Detectado label def Detectado 0 "No", modify label def Detectado 1 "Si", modify label values PP2 Detectado label def Detectado 0 "No", modify label def Detectado 1 "Si", modify label values PP3 Detectado
Comment