230 likes | 320 Views
Time Between Charts. Farrokh Alemi, Ph.D. Steps in construction of time in between charts. Verify the chart assumptions Select to draw time to success or time to failure Calculate time to success or failure Calculate control limits Plot chart Interpret findings Distribute chart.
E N D
Time Between Charts Farrokh Alemi, Ph.D.
Steps in construction of time in between charts • Verify the chart assumptions • Select to draw time to success or time to failure • Calculate time to success or failure • Calculate control limits • Plot chart • Interpret findings • Distribute chart
Step 1: Check assumptions • One observation per time period • Dichotomous discrete rare event • Independent observations over time • Geometric Distribution of observations (Longer time to event is increasingly rare)
Step 2: Select the event to trace • Plot time to failure if failure is more rare than success • Plot time to success if success is more rare than failure
Step 4: Calculate control limits • If failures are rare, calculate R as the ratio of failure days to success days • If success is rare, calculate R as the ratio of successful days to failure days • UCL = R + 3 [R * (1+R)] 0.5
Step 5: Plot control chart • X-axis is time • Y-axis is either length of failures or length of successes • UCL is drawn as straight line
Steps 6 & 7: Interpret findings & distribute chart • Any series exceeding UCL cannot be due to chance and is a statistically significant deviation from historical patterns • If any point in a series is above the UCL, then the entire series is unusual not just the point exceeding the limit. • In distributing chart include: • Assumptions • Plot • Interpretation
Example in asthma care • Patient followed for 19 days • Personal best 310 • 80% of personal best is 248 • Is the patient’s asthma improving? =if(A2<248,”Yes”,”No”)
Calculate attack free days =IF(B2="Yes",0,1) =IF(B3="Yes",0,B2+1)
Calculate control limits =COUNTIF(B2:B20,"Yes") =COUNTIF(B2:B20,“No") =F5+3*(F5*(1+F5))^0.5
Interpret findings & distribute • Recovery on the 5th day was not statistically significant • From 9th to 14th day, when patient was away from home, there was significant recovery. • After the 14th day, the patient returns home and so do the asthma attacks
Example in Court Ordered Substance Abuse Treatment Different corrective actions are needed for relapse or return to poor habits
What Is Relapse? • A working definition of relapse is difficult. • It is a relapse, if I say it is. Otherwise it is not. • Behavioral definitions have been offered recently. • We provide a statistical definition.
Sample Case • Client was tested weekly for 20 weeks • There has been failures on 6th, 10th and 15th through 17th week • Are these failures return to poor habits or merely temporary relapses?
If current date is success, then 0 Otherwise, if previous day is relapse then add 1 to previous days count, if not relapse Then set current count to 1 day of relapse Calculating Length of Relapse in Excel
Check Assumptions • Time to success should have a geometrically decaying shape • Eye examination suggests the assumption is reasonable • Frequency of failures are low.
=COUNT(C2:C21)-COUNTIF(C2:C21, 0) =COUNTIF(C2:C21,0) =E2/E3 =E4+3*(E4*(1+E4))^0.5 Calculate Upper Control Limit
Interpret the Chart • Points below control limit could be due to chance events. Despite failures, the underlying habit is repeating as before. • There were two lapses • Series with one point above control limit have less than 1% chance of occurring due to chance alone. They represent changes in the underlying repetition of the habit. • There is one return to drug use
Take Home Lesson Time in between charts are effective tools for examining rare events