<?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: TOST Equivalence Test in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/521563#M141530</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Hi, Sir&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Issue 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;I apologized for issue 1 which making you were confused. Due to data came from my client, I was worried about&amp;nbsp;legal issue if I posted full data. Therefore, I randomly selected some of data at beginning and used part of data in unbalanced.csv.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Issue 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Due to we use &lt;SPAN&gt;Phoenix/WinNonlin for data analysis which applying mixed effects modeling, I am trying using SAS to reproduce the result (T1_TOST and T2_TOST)&amp;nbsp;and I am first time to use ttest for such data so I am not sure how the procedure will handle missing data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Issue 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also apologized for misunderstanding, I am sure that I am trying to compare treatment, not the periods, I just used period as variable&amp;nbsp;to indicate what drug was administered in which period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Issue 4:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Due to&amp;nbsp;&lt;FONT face="symbol"&gt;a&lt;/FONT&gt;&lt;SPAN&gt;=0.1 is used as significant level&amp;nbsp;for bioequivalence analysis, therefore, I also used here.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally work out my analysis by using proc Mixed, thank you for your reply and suggestion, I've learned a lot here.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Dec 2018 17:20:00 GMT</pubDate>
    <dc:creator>Charlie</dc:creator>
    <dc:date>2018-12-14T17:20:00Z</dc:date>
    <item>
      <title>TOST Equivalence Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519028#M140517</link>
      <description>&lt;P&gt;I use SAS program (Version 9.4) and Phoenix/Winnonlin to calculate &lt;SPAN&gt;&amp;nbsp;two one-sided&lt;/SPAN&gt;&amp;nbsp;T test. The results of point estimate and 90% of confidence interval of SAS and Phoenix/Winnonlin are same.&lt;BR /&gt;But "&lt;SPAN&gt;TOST&lt;/SPAN&gt;" have different value of upper and lower.&lt;BR /&gt;Here are the results of &lt;SPAN&gt;TOST&lt;/SPAN&gt; value of SAS and Phoenix/Winnonlin.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS:&lt;/STRONG&gt;&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="4.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25404i7CEF52F725B8B930/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.PNG" alt="4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Result in TOST Level 0.1 Equivalence Analysis shows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 444px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25401i664A774E1E1A3C54/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.PNG" alt="1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SAS code as follow&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics off;
proc ttest data=temp1_1 dist=lognormal tost(1.0114488825,1.2793655184) alpha=0.1;
     class Treatment;
	 var  lnCmax;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Phoenix/Winnonlin&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25403iA9862F2837AA62A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.PNG" alt="3.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There are questions:&lt;BR /&gt;1. Why the results are different?&lt;BR /&gt;2. How to calculate t1_TOST, t2_TOST, Prob_80_00 and Prob_125_00 in Phoenix by using SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data as a&lt;SPAN&gt;ttachment.&amp;nbsp;&lt;/SPAN&gt;Please help me answer these questions. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 06:26:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519028#M140517</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2018-12-06T06:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: TOST Equivalence Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519127#M140565</link>
      <description>&lt;P&gt;I can't answer why some other software does not match SAS's results, but it is usually because they are&amp;nbsp;using different formulas/methods/assumptions. For a nice exposition of the TOST tests in SAS, see &lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1911-2015.pdf" target="_self"&gt;Castello and Watts (2015).&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 14:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519127#M140565</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-12-06T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: TOST Equivalence Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519231#M140598</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78570"&gt;@Charlie&lt;/a&gt;&amp;nbsp;and&amp;nbsp;welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, you started with a dataset created from test-2.csv:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile 'C:\Temp\test-2.csv' dsd firstobs=2;
input Subject Treatment $ Period Sequence $ Cmax;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Apparently you created an additional variable &lt;FONT face="courier new,courier"&gt;lnCmax&lt;/FONT&gt;. Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data temp1_1;
set have;
lnCmax=log(Cmax);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To replicate the results in your first screenshot I created a transposed dataset with a structure similar to &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_ttest_examples04.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;Example 122.4 AB/BA Crossover Design&lt;/A&gt;&amp;nbsp;in the PROC TTEST documentation (which I selected because obviously your data is from such a crossover trial):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=have out=tmp;
by descending sequence subject;
run;

data trans;
do until(last.subject);
  set tmp(rename=(Cmax=c));
  by subject notsorted;
  array drug[2] $1;
  array Cmax[2];
  array lnCmax[2];
  drug[period]=treatment;
  Cmax[period]=c;
  lnCmax[period]=log(c);
end;
keep subject drug: Cmax: lnCmax:;
run;

proc print data=trans;
id subject;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PROC PRINT output:&lt;/P&gt;
&lt;PRE&gt;Subject    drug1    drug2    Cmax1    Cmax2    lnCmax1    lnCmax2

   1         T        R       23.7     19.2    3.16548    2.95491
   3         T        R       28.0     25.3    3.33220    3.23080
   5         T        R       24.0     17.4    3.17805    2.85647
   2         R        T       21.8     23.1    3.08191    3.13983
   4         R        T       16.6     14.8    2.80940    2.69463
   6         R        T       22.1     26.9    3.09558    3.29213&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output statistics=stats0(where=(sequence=:'Both' &amp;amp; treatment=:'D' &amp;amp; method=:'P'));
proc ttest data=trans alpha=0.1;
var lnCmax1 lnCmax2 / crossover=(drug1 drug2);
run;

data stats;
set stats0;
point_esti=100*exp(-mean);
lower=100*exp(-upperCLmean); /* (!) */
upper=100*exp(-lowerCLmean);
run;

proc print data=stats noobs;
format mean lowerclmean upperclmean 9.6
       point_esti lower upper 12.8;
var lowerclmean mean upperclmean point_esti lower upper;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;    Lower                     Upper
   CLMean         Mean       CLMean      point_esti           lower           upper

-0.246364    -0.128874    -0.011384    113.75468447    101.14488825    127.93655184&lt;/PRE&gt;
&lt;P&gt;Without the CROSSOVER option the confidence limits would be quite different. Note that the "Difference Between Means" (named "Mean" in my output) was calculated for R − T (referring to &lt;FONT face="courier new,courier"&gt;lnCmax&lt;/FONT&gt;), whereas the ratio (in percent, for &lt;FONT face="courier new,courier"&gt;Cmax&lt;/FONT&gt;) was calculated in the opposite direction: T / R.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The table&amp;nbsp;"Equivalence Analysis" can be replicated with dataset TEMP1_1 as&amp;nbsp;created above&amp;nbsp;and your code, but, obviously, &lt;EM&gt;only after changing the TOST parameters&lt;/EM&gt; to those in column "Null" of the output: (0.8, 1.25). However, I think this table is incorrect anyway because you specify the &lt;EM&gt;log&lt;/EM&gt;-normal distribution for the &lt;EM&gt;logarithms&lt;/EM&gt; of Cmax. And your PROC TTEST code doesn't reflect the crossover design.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, the results from "Phoenix/Winnonlin" can be replicated (up to minor differences in the CI [see highlighted decimals below], also not converting ratios into percentages) with the code below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output statistics=stats1(where=(sequence=:'Both' &amp;amp; treatment=:'Ratio'))
           EquivTests=eqtst(where=(test ne: 'O' &amp;amp; treatment=:'R' &amp;amp; method=:'P'));
proc ttest data=trans dist=lognormal tost(0.8, 1.25) alpha=0.1 order=data;
var Cmax1 Cmax2 / crossover=(drug1 drug2);
run;

proc print data=stats1 noobs;
format _numeric_ 12.9;
var GeomMean LowerCLGeomMean UpperCLGeomMean;
run;

proc print data=eqtst;
format _numeric_ 11.8;
var tValue Probt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;PRE&gt;                 LowerCLGeom     UpperCLGeom
    GeomMean            Mean            Mean

 1.137546845     1.0114&lt;FONT color="#FF0000"&gt;48883&lt;/FONT&gt;     1.2793&lt;FONT color="#FF0000"&gt;65518&lt;/FONT&gt;&lt;/PRE&gt;
&lt;PRE&gt;     tValue          Probt

 6.38732009     0.00154175
-1.71050951     0.08117192&lt;/PRE&gt;
&lt;P&gt;Does this answer your questions?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 17:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519231#M140598</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-12-06T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: TOST Equivalence Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519690#M140808</link>
      <description>&lt;P&gt;&amp;nbsp;Dear&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;Freelance Reinhard&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;Thank you for the solution and it works fine with balanced dataset (excluding subject 17 from attachment file).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;I used the code as follow:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;proc import datafile="D:\unbalance.csv" out=raw dbms=csv replace;&lt;BR /&gt; getnames=yes;&lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;data raw;&lt;BR /&gt; set raw;&lt;BR /&gt; if subject=17 then delete;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc ttest data=raw dist=lognormal tost(0.8, 1.25) alpha=0.1;&lt;BR /&gt; var Cmax2 Cmax1 / crossover=(drug1 drug2);&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;The result of Equivalence Analysis shows as follow:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.jpg" style="width: 595px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25474i7F42443E9E3F282B/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It matches the result of Phoenix/WinNonlin as follow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.jpg" style="width: 391px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25475i0C93946B07CB00BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, after subject 17 is included in analysis, the Phoenix/WinNonlin shows as&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="3.jpg" style="width: 383px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25476i1B4DD757CFA6958B/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.jpg" alt="3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The result from SAS shows still same as balanced dataset:&lt;/P&gt;&lt;P&gt;Tvalue&amp;nbsp; &amp;nbsp;Pvalue&lt;/P&gt;&lt;P&gt;&amp;nbsp;4.43&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;.0001&lt;/P&gt;&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;-4.08&amp;nbsp; &amp;nbsp; &amp;nbsp; 0.0002&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found that N in analysis of unbalanced dataset is same to balanced dataset as follow, which&amp;nbsp;means subject with missing data is deleted before performing analysis like glm procedure?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.jpg" style="width: 269px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25477iB1B0574C75C00193/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.jpg" alt="4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this situation, is there any solution by using ttest procedure? or I need to use mixed procedure (which analysis all subjects) to get data (such as SD and SE) and coding for calculation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Dec 2018 21:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519690#M140808</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2018-12-08T21:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: TOST Equivalence Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519880#M140902</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78570"&gt;@Charlie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, I see several (potential) issues in your&amp;nbsp;second&amp;nbsp;post:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Most importantly, there are serious inconsistencies between your raw data files test-2.csv and unbalance.csv: For the odd-numbered subjects the Cmax values are assigned to different treatments (i.e., T and R have been interchanged).&lt;BR /&gt;Example: Subject 1 had Cmax=23.7 for treatment T and 19.2 for treatment R according to test-2.csv, but (seemingly) vice versa according to unbalance.csv.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The permutation of Cmax1 and Cmax2 in the VAR statement of PROC TTEST adds confusion and does not&amp;nbsp;really&amp;nbsp;compensate for the data issue because then the &lt;EM&gt;even&lt;/EM&gt;-numbered subjects have their Cmax values incorrectly assigned.&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;The first table ("result of&amp;nbsp;&lt;SPAN&gt;Equivalence Analysis") shows the tests for the comparison of &lt;EM&gt;periods&lt;/EM&gt;. Is this your focus and not the comparison of &lt;EM&gt;treatments&lt;/EM&gt;?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Are you sure that you want &lt;FONT face="symbol"&gt;a&lt;/FONT&gt;=0.1 as the significance level? Note that the confidence intervals involved in the TOST are (1-&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;FONT face="symbol"&gt;a&lt;/FONT&gt;)*100% CIs, so these would be 80% CIs.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is true that PROC TTEST excludes the observation (subject 17) which has missing Cmax for one of the periods. This is because the&amp;nbsp;analysis involves the&amp;nbsp;square root of the "period ratios" (i.e., the ratios between period 1 and period 2 response values, see &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_ttest_details18.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank"&gt;documentation&lt;/A&gt;). Hence, both results must be available.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One option for including the single available Cmax value of subject 17 is indeed to use PROC MIXED: I was able to replicate an arbitrarily selected CI for dataset RAW by means of a PROC MIXED step based on&amp;nbsp;Program 8.1 from the book &lt;A href="https://www.sas.com/store/de_de/books/categories/usage-and-reference/pharmaceutical-statistics-using-sas-a-practical-guide/prodBK_60622_en.html" target="_blank"&gt;Pharmaceutical Statistics Using SAS®: A Practical Guide&lt;/A&gt;, p. 200. The program code is available from &lt;A href="https://support.sas.com/downloads/package.htm?pid=1688" target="_blank"&gt;https://support.sas.com/downloads/package.htm?pid=1688&lt;/A&gt;&amp;nbsp;(after extracting &lt;FONT face="courier new,courier"&gt;60622_example.zip&lt;/FONT&gt; it is in&amp;nbsp;&lt;FONT face="courier new,courier"&gt;60622_example\zipped_files\SAS code and data sets\Chapter08\Chapter 8 code.txt&lt;/FONT&gt;). If subject 17 is included, PROC MIXED uses its available Cmax value and produces a slightly different CI which could be used&amp;nbsp;to perform the equivalence test. (As far as I see from the documentation, Winnonlin always uses linear models to compute the TOST t-statistics.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the decision as to how to deal with the missing value of subject 17 should be based on the statistical analysis plan and (if applicable) relevant guidelines of regulatory authorities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have further questions about the PROC MIXED code, I suggest you start a new thread in the appropriate subforum "&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;Statistical Procedures&lt;/A&gt;."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Good luck with your analysis!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 09:55:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/519880#M140902</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-12-10T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: TOST Equivalence Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/521563#M141530</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Hi, Sir&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Issue 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;I apologized for issue 1 which making you were confused. Due to data came from my client, I was worried about&amp;nbsp;legal issue if I posted full data. Therefore, I randomly selected some of data at beginning and used part of data in unbalanced.csv.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Issue 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Due to we use &lt;SPAN&gt;Phoenix/WinNonlin for data analysis which applying mixed effects modeling, I am trying using SAS to reproduce the result (T1_TOST and T2_TOST)&amp;nbsp;and I am first time to use ttest for such data so I am not sure how the procedure will handle missing data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Issue 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also apologized for misunderstanding, I am sure that I am trying to compare treatment, not the periods, I just used period as variable&amp;nbsp;to indicate what drug was administered in which period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Issue 4:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Due to&amp;nbsp;&lt;FONT face="symbol"&gt;a&lt;/FONT&gt;&lt;SPAN&gt;=0.1 is used as significant level&amp;nbsp;for bioequivalence analysis, therefore, I also used here.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally work out my analysis by using proc Mixed, thank you for your reply and suggestion, I've learned a lot here.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 17:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TOST-Equivalence-Test/m-p/521563#M141530</guid>
      <dc:creator>Charlie</dc:creator>
      <dc:date>2018-12-14T17:20:00Z</dc:date>
    </item>
  </channel>
</rss>

