<?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: Bchoice-Choicetype=Allocation: error in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439134#M23161</link>
    <description>&lt;P&gt;What version of SAS are you using? If you're not sure run the following code and see what the results are in the log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194852"&gt;@thongtiennguyen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am using Bchoice and find the error in Choicetype when I estimate allocation model. I have used my data as well as data and code from&amp;nbsp;Example 9 for Proc Bchoice (allocation model) and Example 8 for Bchoice (MaxDiff choice). It appears the same error below. Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;======= I run the example 9 (allocation model) as code and error below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6946 proc bchoice data=MAMR seed=124 nthreads=8 nmc=20000 nthin=2 plots=none;&lt;BR /&gt;6947 class TrtScheme(ref=first) RespRate Time Status TrtLine Risk Cost ID Set&lt;BR /&gt;6948 / ref=last;&lt;BR /&gt;6949 model Alloc = / choiceset=(ID Set) Choicetype=ALLOCATION;&lt;BR /&gt;----------&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ALTERIDX, CHOICESET, COEFFPRIOR, COVPRIOR, COVTYPE,&lt;BR /&gt;CPRIOR, INIT, INITIAL, LAMBDAPRIOR, LPRIOR, NEST, SAMELAMBDA, TYPE.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;6950 random TrtScheme RespRate Time Status TrtLine Risk Cost&lt;BR /&gt;ERROR: Variable ALLOCATION not found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 00:46:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-02-22T00:46:24Z</dc:date>
    <item>
      <title>Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439110#M23160</link>
      <description>&lt;P&gt;I am using Bchoice and find the error in Choicetype when I estimate allocation model. I have used my data as well as data and code from&amp;nbsp;Example 9 for Proc Bchoice (allocation model) and Example 8 for Bchoice (MaxDiff choice). It appears the same error below. Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;======= I run the example 9 (allocation model) as code and error below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6946 proc bchoice data=MAMR seed=124 nthreads=8 nmc=20000 nthin=2 plots=none;&lt;BR /&gt;6947 class TrtScheme(ref=first) RespRate Time Status TrtLine Risk Cost ID Set&lt;BR /&gt;6948 / ref=last;&lt;BR /&gt;6949 model Alloc = / choiceset=(ID Set) Choicetype=ALLOCATION;&lt;BR /&gt;----------&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ALTERIDX, CHOICESET, COEFFPRIOR, COVPRIOR, COVTYPE,&lt;BR /&gt;CPRIOR, INIT, INITIAL, LAMBDAPRIOR, LPRIOR, NEST, SAMELAMBDA, TYPE.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;6950 random TrtScheme RespRate Time Status TrtLine Risk Cost&lt;BR /&gt;ERROR: Variable ALLOCATION not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2018 22:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439110#M23160</guid>
      <dc:creator>thongtiennguyen</dc:creator>
      <dc:date>2018-02-21T22:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439134#M23161</link>
      <description>&lt;P&gt;What version of SAS are you using? If you're not sure run the following code and see what the results are in the log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194852"&gt;@thongtiennguyen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am using Bchoice and find the error in Choicetype when I estimate allocation model. I have used my data as well as data and code from&amp;nbsp;Example 9 for Proc Bchoice (allocation model) and Example 8 for Bchoice (MaxDiff choice). It appears the same error below. Please help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;======= I run the example 9 (allocation model) as code and error below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6946 proc bchoice data=MAMR seed=124 nthreads=8 nmc=20000 nthin=2 plots=none;&lt;BR /&gt;6947 class TrtScheme(ref=first) RespRate Time Status TrtLine Risk Cost ID Set&lt;BR /&gt;6948 / ref=last;&lt;BR /&gt;6949 model Alloc = / choiceset=(ID Set) Choicetype=ALLOCATION;&lt;BR /&gt;----------&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ALTERIDX, CHOICESET, COEFFPRIOR, COVPRIOR, COVTYPE,&lt;BR /&gt;CPRIOR, INIT, INITIAL, LAMBDAPRIOR, LPRIOR, NEST, SAMELAMBDA, TYPE.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;6950 random TrtScheme RespRate Time Status TrtLine Risk Cost&lt;BR /&gt;ERROR: Variable ALLOCATION not found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 00:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439134#M23161</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-22T00:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439136#M23162</link>
      <description>Also, please run the exact code from here in a clean session and post your full log. &lt;BR /&gt;&lt;A href="http://documentation.sas.com/api/docsets/statug/14.3/content/statug_code_bchcex9.htm?locale=en" target="_blank"&gt;http://documentation.sas.com/api/docsets/statug/14.3/content/statug_code_bchcex9.htm?locale=en&lt;/A&gt;</description>
      <pubDate>Thu, 22 Feb 2018 00:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439136#M23162</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-22T00:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439244#M23163</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Sas 9.4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run your suggested codes but it does't work. Below are logs. Thank you very much for help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3 /*-----------------------------------------------------------------&lt;BR /&gt;4 S A S S A M P L E L I B R A R Y&lt;BR /&gt;5&lt;BR /&gt;6 NAME: BCHCEX9&lt;BR /&gt;7 TITLE: Documentation Example 9 for PROC BCHOICE&lt;BR /&gt;8 Allocation choice example&lt;BR /&gt;9 PRODUCT: STAT&lt;BR /&gt;10 SYSTEM: ALL&lt;BR /&gt;11 KEYS:&lt;BR /&gt;12 PROCS: BCHOICE&lt;BR /&gt;13 DATA:&lt;BR /&gt;14&lt;BR /&gt;15 SUPPORT: Amy Shi&lt;BR /&gt;16 REF: PROC BCHOICE, EXAMPLE 9&lt;BR /&gt;17 MISC:&lt;BR /&gt;18 -----------------------------------------------------------------*/&lt;BR /&gt;19&lt;BR /&gt;20 data MAMR;&lt;BR /&gt;21 input ID Set None TrtScheme RespRate Time Status TrtLine Risk Cost Alloc @@;&lt;BR /&gt;22 datalines;&lt;/P&gt;&lt;P&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;NOTE: The data set WORK.MAMR has 5852 observations and 11 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.22 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;5875 ;&lt;BR /&gt;5876&lt;BR /&gt;5877 proc print data=MAMR(obs=20);&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;5878 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 20 observations read from the data set WORK.MAMR.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt;real time 1.08 seconds&lt;BR /&gt;cpu time 0.54 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;5879&lt;BR /&gt;5880 proc bchoice data=MAMR seed=124 nthreads=8 nmc=20000 nthin=2 plots=none;&lt;BR /&gt;5881 class TrtScheme(ref=first) RespRate Time Status TrtLine Risk Cost ID Set&lt;BR /&gt;5882 / ref=last;&lt;BR /&gt;5883 model Alloc = / choiceset=(ID Set) choicetype=allocation;&lt;BR /&gt;----------&lt;BR /&gt;22&lt;BR /&gt;202&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, ALTERIDX, CHOICESET, COEFFPRIOR, COVPRIOR, COVTYPE,&lt;BR /&gt;CPRIOR, INIT, INITIAL, LAMBDAPRIOR, LPRIOR, NEST, SAMELAMBDA, TYPE.&lt;BR /&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;BR /&gt;5884 random TrtScheme RespRate Time Status TrtLine Risk Cost&lt;BR /&gt;ERROR: Variable ALLOCATION not found.&lt;BR /&gt;NOTE: PROCEDURE BCHOICE used (Total process time):&lt;BR /&gt;real time 0.18 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;5885 / subject=ID remean;&lt;BR /&gt;5886 run;&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>Thu, 22 Feb 2018 12:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439244#M23163</guid>
      <dc:creator>thongtiennguyen</dc:creator>
      <dc:date>2018-02-22T12:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439399#M23164</link>
      <description>&lt;P&gt;Sorry, I need you SAS/STAT version. I suspect you're using an older version (14.1 or 13.1?) that doesn't support this PROC with the option in the example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 18:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439399#M23164</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-22T18:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439424#M23167</link>
      <description>&lt;P&gt;Dear Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I think I use version 14.1. Below are results from running your log. What should I do? Much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc product_status;run;&lt;/P&gt;&lt;P&gt;For Base SAS Software ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;Image version information: 9.04.01M3P062415&lt;BR /&gt;For SAS/STAT ...&lt;BR /&gt;Custom version information: 14.1&lt;BR /&gt;For SAS/GRAPH ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ETS ...&lt;BR /&gt;Custom version information: 14.1&lt;BR /&gt;For SAS/FSP ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/OR ...&lt;BR /&gt;Custom version information: 14.1&lt;BR /&gt;For SAS/AF ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/IML ...&lt;BR /&gt;Custom version information: 14.1&lt;BR /&gt;For SAS/QC ...&lt;BR /&gt;Custom version information: 14.1&lt;BR /&gt;For SAS/ASSIST ...&lt;BR /&gt;Custom version information: 9.4&lt;BR /&gt;Image version information: 9.04.01M0P061913&lt;BR /&gt;For SAS/CONNECT ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS Interface to Netezza ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS to Hadoop ...&lt;BR /&gt;Custom version information: 9.43&lt;BR /&gt;For SAS Enterprise Miner ...&lt;BR /&gt;Custom version information: 14.1&lt;BR /&gt;For SAS/ACCESS to Vertica ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS to Postgres ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS to Impala ...&lt;BR /&gt;Custom version information: 9.42&lt;BR /&gt;Image version information: 9.04.01M0P062415&lt;BR /&gt;For SAS/ACCESS Reserved Slot 568 ...&lt;BR /&gt;Custom version information: 9.4&lt;BR /&gt;Image version information: 9.04.01M0P040616&lt;BR /&gt;For SAS Integration Technologies ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For High Performance Suite ...&lt;BR /&gt;Custom version information: 2.2_M4&lt;BR /&gt;For SAS/ACCESS Interface to DB2 ...&lt;BR /&gt;Custom version information: 9.4_M2&lt;BR /&gt;For SAS/ACCESS Interface to Oracle ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For Interface to the PI System ...&lt;BR /&gt;Custom version information: 9.41&lt;BR /&gt;Image version information: 9.04.01M0P020316&lt;BR /&gt;For SAS/ACCESS Interface to Sybase ...&lt;BR /&gt;Custom version information: 9.4_M2&lt;BR /&gt;For SAS/ACCESS Interface to PC Files ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS Interface to ODBC ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS Interface to OLE DB ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;For SAS/ACCESS Interface to Teradata ...&lt;BR /&gt;Custom version information: 9.43&lt;BR /&gt;For SAS/ACCESS Interface to MySQL ...&lt;BR /&gt;Custom version information: 9.4_M3&lt;BR /&gt;NOTE: PROCEDURE PRODUCT_STATUS used (Total process time):&lt;BR /&gt;real time 0.49 seconds&lt;BR /&gt;cpu time 0.11 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 19:41:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439424#M23167</guid>
      <dc:creator>thongtiennguyen</dc:creator>
      <dc:date>2018-02-22T19:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439444#M23169</link>
      <description>&lt;P&gt;14.1 doesn't support that code and the example isn't in the documentation - make sure to use the correct documentation for your installation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can request an upgrade - that's included with your licensing fees.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 20:18:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439444#M23169</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-22T20:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bchoice-Choicetype=Allocation: error</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439638#M23179</link>
      <description>&lt;P&gt;Thank a lot. I did not know about it.&lt;/P&gt;&lt;P&gt;Th&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 10:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Bchoice-Choicetype-Allocation-error/m-p/439638#M23179</guid>
      <dc:creator>thongtiennguyen</dc:creator>
      <dc:date>2018-02-23T10:03:24Z</dc:date>
    </item>
  </channel>
</rss>

