<?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: Designing a discrete choice experiment in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644353#M30900</link>
    <description>&lt;P&gt;&lt;A href="https://support.sas.com/techsup/technote/mr2010c.pdf" target="_blank"&gt;https://support.sas.com/techsup/technote/mr2010c.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an extensive discussion in the link.&amp;nbsp; Search for "candidate set of alternatives" examples. There are many other possibilities as well.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 18:45:08 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2020-04-30T18:45:08Z</dc:date>
    <item>
      <title>Designing a discrete choice experiment</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644306#M30898</link>
      <description>&lt;P&gt;Hi everybody,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about programming a DCE, and I really hope somebody can help me since I'm not used to work in SAS (different coding..).&lt;BR /&gt;I want to create a DCE with two options (vaginal delivery vs caesarean delivery) and different scenario alternatives&amp;nbsp; consisting of 5 attributes, and 2-3 levels (see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Attributes&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;Level 1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;level 2&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;level 3&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Age mother&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;22 year&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;32 year&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;42 year&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;BMI mother&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;23&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;32&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Parity&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Primiparity&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Multiparity – in obstetric history normal vaginal birth&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;Multiparity – in obstetric history previous caesarean for dystocia&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Underlying pathology &lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;No – uncomplicated pregnancy&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Yes – mild preeclampsia&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;Estimated birth weight&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;2400g&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;3300g&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;FONT size="2"&gt;4000g&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So 108 possibilities and I think it should be a factorial design.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried looking in the community and searching in&amp;nbsp;PROC BCHOICE but it won't work.&amp;nbsp;See below for my attempt. What am I doing wrong and what is next in order to create the question like the added file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;%mktruns (2 ** 2 3 ** 3);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;%mktex (2 ** 2 3 ** 3, n=72, &lt;FONT color="#FF0000"&gt;seed= ?)&lt;/FONT&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Proc format;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value Age 1 = 22 2 = 32 3 = 42;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value BMI 1 = 23 2 = 32 ; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value Parity 1 = primiparity 2= multiparity in obstetric history normal vaginal birth 3 = multiparity in obstetric history previous caesarean for abnormal CTG; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value Underlying_pathology 1 = no uncomplicated pregnancy 2 = yes mild preeclampsia; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value Estimated_birth_weight 1 = 2400 2 = 3300 3 = 4000;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;%mktlab(data=design, /* input data set */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Vars= Age BMI Parity Underlying_pathology Estimated_birth_weight, /* new attribute names */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;int=f1-f2, /* create 2 columns of 1’s in f1-f2 */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;out=final, /* output design add a format statement for the attributes */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;stms=format Age Age. BMI BMI. Parity Parity. Underlying_pathology Underlying_pathology. Estimated_birth_weight Estimated_birth_weight.)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;proc print; run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 16:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644306#M30898</guid>
      <dc:creator>lvanwijk</dc:creator>
      <dc:date>2020-04-30T16:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Designing a discrete choice experiment</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644353#M30900</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/techsup/technote/mr2010c.pdf" target="_blank"&gt;https://support.sas.com/techsup/technote/mr2010c.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is an extensive discussion in the link.&amp;nbsp; Search for "candidate set of alternatives" examples. There are many other possibilities as well.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644353#M30900</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-04-30T18:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Designing a discrete choice experiment</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644530#M30917</link>
      <description>&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to example 6 I tried programming my DCE. However it doesn't work when I'm running it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Title DCE 1-5 #2&lt;BR /&gt;&lt;FONT size="2"&gt;%mktruns(3 2 3 2 3)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;%mktex(3 2 3 2 3, /* factor level list for one alternative */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;n=72) /* number of candidate alternatives */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;proc format;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value age 1 = 22y 2 = 32 y 3 = 42 y;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value BMI 1 = 25 2 = 32;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value Parity 1= Primiparity 2 = ’Multiparity – in obstetric history normal vaginal birth’ 3 = ’Multiparity – in obstetric history previous caesarean for abnormal CTG’;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value 'Underlying pathology' 1 = ’No – uncomplicated pregnancy’ 2 = ’Yes – mild preeclampsia’;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;value 'Estimated birth weight' 1 = 2400g 2 = 3300g 3 = 4000g;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;%mktlab(data=design, /* input data set */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;vars=Age BMI Parity 'Underlying pathology' 'Estimated birth weight', /* new attribute names */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;int=f1-f4, /* create 4 columns of 1’s in f1-f4 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;out=final, /* output design */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;/* add a format statement for the attributes */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;stmts=format age age. bmi bmi. parity parity. 'Underlying pathology' path. 'Estimated birth weight' weight.)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;proc print; run&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 14:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644530#M30917</guid>
      <dc:creator>lvanwijk</dc:creator>
      <dc:date>2020-05-01T14:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Designing a discrete choice experiment</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644531#M30918</link>
      <description>&lt;P&gt;I have not run your code, but you need to get the quotes right in you value statements for starts.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 14:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Designing-a-discrete-choice-experiment/m-p/644531#M30918</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2020-05-01T14:40:03Z</dc:date>
    </item>
  </channel>
</rss>

