<?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: SEQTEST error message in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737824#M35820</link>
    <description>&lt;P&gt;I know nothing about the procs you are using but just based on your code and the error message it looks to me that you've got a variable&amp;nbsp;&lt;EM&gt;parameter&lt;/EM&gt; in your parms data set but you then use the value of this variable instead of its name in proc seqtest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just based on how things look like I'd expect instead of using the variable value &lt;EM&gt;treatment&lt;/EM&gt;....&lt;/P&gt;
&lt;PRE&gt;parms(testvar=treatment infovar=nobs)=parms&lt;/PRE&gt;
&lt;P&gt;...SAS expects you to use the name of the variable you've created in the parms file -&amp;nbsp;&lt;EM&gt;parameter&lt;/EM&gt;...&lt;/P&gt;
&lt;PRE&gt;parms(testvar=parameter infovar=nobs)=parms&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Apr 2021 08:19:42 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-04-29T08:19:42Z</dc:date>
    <item>
      <title>SEQTEST error message</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737822#M35819</link>
      <description>&lt;P&gt;Example from Analysis of Clinical trials using SAS, part 6 Interim Data Monitoring&lt;/P&gt;&lt;P&gt;Trying to re-run PROGRAM 6.10 Conditional power tests at the first interim look in Case study 3&lt;BR /&gt;using following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc seqdesign altref=0.09;
design method=errfuncobf
nstages=2
info=cum(0.24 1)
alt=upper
stop=reject
alpha=0.1
beta=0.2;
samplesize model(ceiladjdesign=include)
=twosamplefreq(nullprop=0.70 test=prop ref=avgprop);
ods output adjustedboundary=obf_boundary;
run;

data sevsep1;
input _stage_ treatment nobs nsurv;
datalines;
1 1 55 33
1 0 45 29
run;

proc genmod data=sevsep1;
model nsurv/nobs= treatment / dist=bin link=identity;
ods output nobs=ntotal parameterestimates=parmest;
run;

data ntotal;
set ntotal;
nobs= n;
if (label='Number of Trials');
keep nobs;
run;

data parms;
set parmest;
if parameter='treatment';
_scale_='MLE';
keep _scale_ parameter estimate;
run;

data parms;
_stage_=1;
merge ntotal parms;
run;

proc seqtest boundary=obf_boundary
parms(testvar=treatment infovar=nobs)=parms
boundaryadj=errfuncobf
boundarykey=alpha
nstages=2
order=stagewise
condpower(type=finalstage);
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I get an error message running the very last SEQTEST statement and I can't figure out what is wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;"ERROR: The parameter variable (Effect, Parm, Parameter, or Variable) in the PARMS= data set does not contain the test variable specified in&lt;BR /&gt;the TESTVAR= option."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can someone help me out?&amp;nbsp;Many thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 07:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737822#M35819</guid>
      <dc:creator>kiranp</dc:creator>
      <dc:date>2021-04-29T07:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: SEQTEST error message</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737824#M35820</link>
      <description>&lt;P&gt;I know nothing about the procs you are using but just based on your code and the error message it looks to me that you've got a variable&amp;nbsp;&lt;EM&gt;parameter&lt;/EM&gt; in your parms data set but you then use the value of this variable instead of its name in proc seqtest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just based on how things look like I'd expect instead of using the variable value &lt;EM&gt;treatment&lt;/EM&gt;....&lt;/P&gt;
&lt;PRE&gt;parms(testvar=treatment infovar=nobs)=parms&lt;/PRE&gt;
&lt;P&gt;...SAS expects you to use the name of the variable you've created in the parms file -&amp;nbsp;&lt;EM&gt;parameter&lt;/EM&gt;...&lt;/P&gt;
&lt;PRE&gt;parms(testvar=parameter infovar=nobs)=parms&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 08:19:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737824#M35820</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-04-29T08:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: SEQTEST error message</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737983#M35838</link>
      <description>&lt;P&gt;You don't need to include the number of trials in the data going into SEQTEST. That information is contained in the standard error, which you do need to include. So, you can replace you code between GENMOD and SEQTEST with just the following.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data parms;
set parmest;
if parameter='treatment';
_scale_='MLE';
_stage_=1;
keep _stage_ _scale_ parameter estimate stderr;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Apr 2021 18:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SEQTEST-error-message/m-p/737983#M35838</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-04-29T18:23:30Z</dc:date>
    </item>
  </channel>
</rss>

