<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get the type I error as shown in the shot ? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823643#M40807</link>
    <description>&lt;P&gt;Insufficient information. Type error results depend on specific test conducted, data and model. You have provided none of those elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different procedures often use different options to display/control Type error information.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jul 2022 15:01:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-07-16T15:01:14Z</dc:date>
    <item>
      <title>How to get the type I error as shown in the shot ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823636#M40806</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a question regard to the calculation of the type I error as shown in the snapshot below, anyone could help me out ? In SAS I know there is procedures about alpha spending. But how to get the type i error if we don't adjust the alpha as shown in the hightlighted area.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jack&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jack2012_0-1657977487583.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73359iC5F5E3FBA3394658/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jack2012_0-1657977487583.png" alt="Jack2012_0-1657977487583.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 13:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823636#M40806</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2022-07-16T13:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the type I error as shown in the shot ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823643#M40807</link>
      <description>&lt;P&gt;Insufficient information. Type error results depend on specific test conducted, data and model. You have provided none of those elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different procedures often use different options to display/control Type error information.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 15:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823643#M40807</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-07-16T15:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the type I error as shown in the shot ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823649#M40808</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/7887"&gt;@Jack2012&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.routledge.com/Group-Sequential-Methods-with-Applications-to-Clinical-Trials/Jennison-Turnbull/p/book/9780849303166" target="_blank" rel="nofollow noopener noreferrer"&gt;C. Jennison, B.W. Turnbull (2000): Group Sequential Methods with Applications to Clinical Trials&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(which is frequently referred to in the PROC SEQDESIGN documentation),&amp;nbsp;section "2.4 Pocock's test" I found a fairly simple (N(0,1)-distributed) test statistic &lt;EM&gt;Z&lt;SUB&gt;k&lt;/SUB&gt;&lt;/EM&gt; (formula (2.4), p. 25) based on normal distributions, which I simulated with the code below and reproduced the type I error probabilities for &lt;EM&gt;k&lt;/EM&gt;=1, 2, 5 and 10 of your table (&lt;EM&gt;k&lt;/EM&gt; = #interim analyses). These appear to be largely independent of all three parameters used: the sample size increment &lt;FONT face="courier new,courier"&gt;n&lt;/FONT&gt;&amp;nbsp;(=&lt;EM&gt;m&lt;/EM&gt; in the book) and the normal distribution parameters &lt;FONT face="courier new,courier"&gt;m&lt;/FONT&gt;&amp;nbsp;(=&lt;EM&gt;&lt;FONT face="symbol"&gt;m&lt;/FONT&gt;&lt;SUB&gt;A&lt;/SUB&gt;&lt;/EM&gt;=&lt;EM&gt;&lt;FONT face="symbol"&gt;m&lt;/FONT&gt;&lt;SUB&gt;B&lt;/SUB&gt;&lt;/EM&gt;&amp;nbsp;under H&lt;SUB&gt;0&lt;/SUB&gt;),&amp;nbsp;&lt;FONT face="courier new,courier"&gt;s&lt;/FONT&gt;&amp;nbsp;(=&lt;EM&gt;&lt;FONT face="symbol"&gt;s&lt;/FONT&gt;&lt;/EM&gt;). (Actually, it should be possible to compute these probabilities from the multivariate normal distribution of the vector (&lt;EM&gt;Z&lt;SUB&gt;1&lt;/SUB&gt;&lt;/EM&gt;, &lt;EM&gt;Z&lt;SUB&gt;2&lt;/SUB&gt;&lt;/EM&gt;, ..., &lt;EM&gt;Z&lt;SUB&gt;K&lt;/SUB&gt;&lt;/EM&gt;), but I haven't tried to do so.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let n=20; /* arbitrary sample size increment per group */
%let m=0;  /* arbitrary mean and */
%let s=1;  /* arbitrary std of the common normal distr. of the trt. groups A, B under H0 */

/* Simulation of the absolute value c[k] of statistic Z_k, 1&amp;lt;=k&amp;lt;=10, from Jennison/Turnbull, p. 25 */

data test(drop=j);
call streaminit(27182818);
array c[10] _temporary_;
do i=1 to 100000;
  call missing(a, b, of c[*]);
  do k=1 to 10;
    do j=1 to &amp;amp;n;
      a+rand('normal',&amp;amp;m,&amp;amp;s);
      b+rand('normal',&amp;amp;m,&amp;amp;s);
    end;
    c[k]=1/sqrt(2*&amp;amp;n*k*&amp;amp;s**2)*abs(a-b);
    r=(max(of c[*])&amp;gt;probit(0.975)); /* indicator for rejection of H0 at any stage 1, ..., k */
    output;
  end;
end;
run;

/* Computation of relative frequencies of indicator variable r
   (approximating the type I error probabilities) */

proc summary data=test nway;
class k;
var r;
output out=want(drop=_:) mean=p;
run;

proc print data=want noobs;
where k in (1, 2, 5, 10);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt; k       p

 1    0.05054
 2    0.08340
 5    0.14176
10    0.19369
&lt;/PRE&gt;
&lt;P&gt;Jennison and Turnbull cite a 1969 paper reporting 0.142 for k=5.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 17:22:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823649#M40808</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-07-16T17:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the type I error as shown in the shot ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823674#M40812</link>
      <description>&lt;P&gt;Million thanks for your help. This is what I am hunting for. Thank you very much.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jul 2022 02:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-the-type-I-error-as-shown-in-the-shot/m-p/823674#M40812</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2022-07-17T02:42:51Z</dc:date>
    </item>
  </channel>
</rss>

