StructuredWater
New Member
- Joined
- Jun 22, 2011
- Messages
- 5
Dear Reader,
[Col A] [Col -] [Col -] [Col B]
URN DIEDLATER? Surg? LOS
ABC40643 FALSE TRUE 176
ABC40643 FALSE TRUE 176
ABC50503 FALSE TRUE 123
ABC64663 FALSE TRUE 62
ABC64663 FALSE TRUE 62
ABC52133 FALSE TRUE 124
ABC52133 FALSE TRUE 124
ABC55433 FALSE TRUE 132
ABC55433 FALSE TRUE 132
ABC34303 FALSE TRUE 78
ABC83573 FALSE TRUE 85
ABC83573 FALSE TRUE 85
The data shows length of stay (LOS) in surgical survivors (Surg? = TRUE, DIEDLATER? = FALSE) who had selected diagnoses. I want to generate quartiles from the LOS column for unique instances of the URN. Thus, for the data above I want to generate quartiles (1, 2 and 3) for the unique items 176, 123, 62, 124, 132, 78, 85. If two different URNs happen to have the same LOS, then the LOS is counted twice - it is the uniqueness of the URNs and not of the LOS's that determines if an LOS ends up (possibly more than once) in the final list to be passed to the QUARTILE function.
At the moment I am somewhat despondent. I can't figure out how to pull out the LOS's to pass to the QUARTILE function, and could do with some help.
Kind regards,
JohnM
[Col A] [Col -] [Col -] [Col B]
URN DIEDLATER? Surg? LOS
ABC40643 FALSE TRUE 176
ABC40643 FALSE TRUE 176
ABC50503 FALSE TRUE 123
ABC64663 FALSE TRUE 62
ABC64663 FALSE TRUE 62
ABC52133 FALSE TRUE 124
ABC52133 FALSE TRUE 124
ABC55433 FALSE TRUE 132
ABC55433 FALSE TRUE 132
ABC34303 FALSE TRUE 78
ABC83573 FALSE TRUE 85
ABC83573 FALSE TRUE 85
The data shows length of stay (LOS) in surgical survivors (Surg? = TRUE, DIEDLATER? = FALSE) who had selected diagnoses. I want to generate quartiles from the LOS column for unique instances of the URN. Thus, for the data above I want to generate quartiles (1, 2 and 3) for the unique items 176, 123, 62, 124, 132, 78, 85. If two different URNs happen to have the same LOS, then the LOS is counted twice - it is the uniqueness of the URNs and not of the LOS's that determines if an LOS ends up (possibly more than once) in the final list to be passed to the QUARTILE function.
At the moment I am somewhat despondent. I can't figure out how to pull out the LOS's to pass to the QUARTILE function, and could do with some help.
Kind regards,
JohnM