<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>FAQ/capacityeg</title><revhistory><revision><revnumber>2</revnumber><date>2013-03-08 10:17:09</date><authorinitials>localhost</authorinitials><revremark>converted to 1.6 markup</revremark></revision><revision><revnumber>1</revnumber><date>2010-05-11 15:12:48</date><authorinitials>PeterWatson</authorinitials></revision></revhistory></articleinfo><section><title>An example used to compute cell probabilities in a 2x2 table</title><para>Case study: </para><para>We have two groups ('psychotic' and 'other disorder'); 25% of cases of disorders are expected to be psychotic and 35% of cases are expected to be able to make informed decisions about their medical treatment ie have capacity. Given 10% more of the other disorders are expected to have capacity how many people with a disorder do we need to sample to have 80% power and a one-tailed type I error rate of 5%? </para><para>If 25% of people with disorders are psychotic that means there are three times as many people with disorders other than psychosis than have psychosis. Ratio other disorders:psychosis = 3. </para><para>If a total of 35% have capacity and 10% more of the other disorders have capacity then for p1, the probability of a psychotic case having capacity it follows </para><para>0.35 = 0.25 p1 + 0.75 (p1 + 0.1) so p1 = 0.275, p2 = 0.275 + 0.1 = 0.375. </para><para>We can input into the power calculator for comparing two independent proportions </para><para>p1 = 0.275, p2 = 0.375, ratio (group 2: group1) = 3, power = 0.80, type I error (two-tailed) = 0.1 giving 771 cases required. </para><informaltable><tgroup cols="5"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><colspec colname="col_3"/><colspec colname="col_4"/><tbody><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"/><entry colsep="1" rowsep="1"><para> <emphasis>Capacity</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis>No Capacity</emphasis> </para></entry></row><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"><para> <emphasis>Psychotic</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> 0.275 </para></entry><entry colsep="1" rowsep="1"><para> 0.725 </para></entry></row><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"><para> <emphasis>Other disorders</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> 0.375 </para></entry><entry colsep="1" rowsep="1"><para> 0.625 </para></entry></row></tbody></tgroup></informaltable><para>becomes the contingency table (with probabilities summing to 1 and apriori marginals) below upon multiplying the top row by 0.25 and the bottom row by 0.75 which gives P(Psychotic) = 0.25 = 1 - P(Having a disorder other than Psychosis) and P(capacity) = 0.35 = 1 - P(no capacity) </para><informaltable><tgroup cols="5"><colspec colname="col_0"/><colspec colname="col_1"/><colspec colname="col_2"/><colspec colname="col_3"/><colspec colname="col_4"/><tbody><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"/><entry colsep="1" rowsep="1"><para> <emphasis>Capacity</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> <emphasis>No Capacity</emphasis> </para></entry></row><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"><para> <emphasis>Psychotic</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> 0.0688 </para></entry><entry colsep="1" rowsep="1"><para> 0.1812 </para></entry></row><row rowsep="1"><entry align="center" colsep="1" nameend="col_2" namest="col_0" rowsep="1"><para> <emphasis>Other disorders</emphasis> </para></entry><entry colsep="1" rowsep="1"><para> 0.2813 </para></entry><entry colsep="1" rowsep="1"><para> 0.4688 </para></entry></row></tbody></tgroup></informaltable><para>so for example 0.0688/(0.0688+0.1812) = 0.25 of psychotics have capacity and 0.2813/(0.2813+0.4688) = 0.375 of those with another disorder have capacity. </para></section></article>