<?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 Simulate responses for fractional factorial design in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450071#M2214</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning DoE&amp;nbsp; and&amp;nbsp;want to simulate responses for fractional factorial design.&lt;/P&gt;&lt;P&gt;As an input for simulation I want to use estimated effect sizes of main factors and some interactions.&lt;/P&gt;&lt;P&gt;I know there is a formula for calculating effects from obtained responses:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"For each of the main effects, the estimated effect consists of the&amp;nbsp;mean at the high level of the factor minus the mean at the low level&amp;nbsp;of the factor."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Here is the screenshot of fractional factorial design from a book:&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="03.30.2018-23.31" style="width: 538px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19551i9720FF21FA69F6D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.30.2018-23.31" alt="03.30.2018-23.31" /&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;And here is formulas for calculation of effects when responses are known:&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="03.30.2018-23.53" style="width: 484px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19550i9D675663A59CF77B/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.30.2018-23.53" alt="03.30.2018-23.53" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want inverse:&lt;/P&gt;&lt;P&gt;1. Input values of estimated main effects and interactions (A B C AB AC etc.)&lt;BR /&gt;2. Derive a simulated responses for all rows (1, a, b, ab..) so that they lead to that predefined effects.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you help me please how to approach this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS, R or JMP code would be extremely helpful.&lt;/P&gt;&lt;P&gt;After all I want to use derived responses in this &lt;A href="https://community.jmp.com/t5/Discussions/How-can-I-simulate-trial-execution-model-for-virtual-DoE/m-p/46852/highlight/true#M26692" target="_blank"&gt;SAS JMP code&lt;/A&gt; for simulation binomial responses. Also I will use it with higher number of factors.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 21:21:11 GMT</pubDate>
    <dc:creator>gustavjung</dc:creator>
    <dc:date>2018-03-30T21:21:11Z</dc:date>
    <item>
      <title>Simulate responses for fractional factorial design</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450071#M2214</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am learning DoE&amp;nbsp; and&amp;nbsp;want to simulate responses for fractional factorial design.&lt;/P&gt;&lt;P&gt;As an input for simulation I want to use estimated effect sizes of main factors and some interactions.&lt;/P&gt;&lt;P&gt;I know there is a formula for calculating effects from obtained responses:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"For each of the main effects, the estimated effect consists of the&amp;nbsp;mean at the high level of the factor minus the mean at the low level&amp;nbsp;of the factor."&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Here is the screenshot of fractional factorial design from a book:&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="03.30.2018-23.31" style="width: 538px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19551i9720FF21FA69F6D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.30.2018-23.31" alt="03.30.2018-23.31" /&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;And here is formulas for calculation of effects when responses are known:&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="03.30.2018-23.53" style="width: 484px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19550i9D675663A59CF77B/image-size/large?v=v2&amp;amp;px=999" role="button" title="03.30.2018-23.53" alt="03.30.2018-23.53" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want inverse:&lt;/P&gt;&lt;P&gt;1. Input values of estimated main effects and interactions (A B C AB AC etc.)&lt;BR /&gt;2. Derive a simulated responses for all rows (1, a, b, ab..) so that they lead to that predefined effects.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you help me please how to approach this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS, R or JMP code would be extremely helpful.&lt;/P&gt;&lt;P&gt;After all I want to use derived responses in this &lt;A href="https://community.jmp.com/t5/Discussions/How-can-I-simulate-trial-execution-model-for-virtual-DoE/m-p/46852/highlight/true#M26692" target="_blank"&gt;SAS JMP code&lt;/A&gt; for simulation binomial responses. Also I will use it with higher number of factors.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 21:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450071#M2214</guid>
      <dc:creator>gustavjung</dc:creator>
      <dc:date>2018-03-30T21:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate responses for fractional factorial design</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450122#M2215</link>
      <description>&lt;P&gt;To simulate data for such a situation, you have to first write out (or have in your mind) an actual model. For example, y = 2 + 5*A – 6*B + 4*A*C + error. Then the simulation ought to be simple (in SAS, you'd need to choose one of the many functions that generate random variables for the error)&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 11:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450122#M2215</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-31T11:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate responses for fractional factorial design</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450124#M2216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;For full factorial design in case I take Y as a success rate my prediction equation is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;0.12125 + Match( :A, -1, -0.04875, 1, 0.04875, . )&lt;BR /&gt;+Match( :B, -1, -0.06375, 1, 0.06375, . )&lt;BR /&gt;+Match( :C, -1, -0.00375, 1, 0.00375, . )&lt;BR /&gt;+Match( :A,&lt;BR /&gt;-1, Match( :B, -1, 0.02625, 1, -0.02625, . ),&lt;BR /&gt;1, Match( :B, -1, -0.02625, 1, 0.02625, . ),&lt;BR /&gt;.&lt;BR /&gt;) + Match( :A,&lt;BR /&gt;-1, Match( :C, -1, 0.00625, 1, -0.00625, . ),&lt;BR /&gt;1, Match( :C, -1, -0.00625, 1, 0.00625, . ),&lt;BR /&gt;.&lt;BR /&gt;) + Match( :B,&lt;BR /&gt;-1, Match( :C, -1, 0.00625, 1, -0.00625, . ),&lt;BR /&gt;1, Match( :C, -1, -0.00625, 1, 0.00625, . ),&lt;BR /&gt;.&lt;BR /&gt;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I simulate responses based on this model for fractional factorial res III design?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After all I would like to use this responses in this script suggested on JMP forum. Also the actual number of factors I will use is 18 and res iV. The example above is for simplicity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;New Table( "Untitled",
  Add Rows( 10 ),
  New Column( "A", Numeric, "Nominal", Format( "Best", 12 ),
              Formula( Random Integer( 0, 1 ) ) ),
  New Column( "B", Numeric, "Nominal", Format( "Best", 12 ),
              Formula( Random Integer( 0, 1 ) ) ),
  New Column( "C", Numeric, "Nominal", Format( "Best", 12 ),
              Formula( Random Integer( 0, 1 ) ) ),
  New Column( "Success?", Numeric, "Nominal", Format( "Best", 12 ),
              Formula(
             If(
             :A == 0 &amp;amp; :B == 0 &amp;amp; :C == 0, Random Binomial( 1, 0.05 ),
             :A == 0 &amp;amp; :B == 0 &amp;amp; :C == 1, Random Binomial( 1, 0.05 ),
             :A == 0 &amp;amp; :B == 1 &amp;amp; :C == 0, Random Binomial( 1, 0.065 ),
             :A == 0 &amp;amp; :B == 1 &amp;amp; :C == 1, Random Binomial( 1, 0.065 ),
             :A == 1 &amp;amp; :B == 0 &amp;amp; :C == 0, Random Binomial( 1, 0.055 ),
             :A == 1 &amp;amp; :B == 0 &amp;amp; :C == 1, Random Binomial( 1, 0.055 ),
             :A == 1 &amp;amp; :B == 1 &amp;amp; :C == 0, Random Binomial( 1, 0.075 ),
             :A == 1 &amp;amp; :B == 1 &amp;amp; :C == 1, Random Binomial( 1, 0.075 ),
             Random Binomial( 1, 0.05 ) ) ) ) )&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 12:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450124#M2216</guid>
      <dc:creator>gustavjung</dc:creator>
      <dc:date>2018-03-31T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simulate responses for fractional factorial design</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450182#M2217</link>
      <description>&lt;P&gt;It looks to me like you are using JMP (or some other language) and not SAS, in which case I can't help you. If you are using JMP, they have their own community for asking questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it also appears to me that you have changed from talking about arbitrary Y variable to one that has to be a value between 0 and 1, is that correct?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 19:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Simulate-responses-for-fractional-factorial-design/m-p/450182#M2217</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-03-31T19:55:16Z</dc:date>
    </item>
  </channel>
</rss>

