<?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: Simulating piecewise loglogistic data in SAS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/704813#M34104</link>
    <description>&lt;P&gt;thanks for response.&amp;nbsp; Figured out what I needed to do to simulate data I needed.&amp;nbsp; I new the mixture probability so I just did&lt;/P&gt;&lt;P&gt;if u&amp;lt;=p then x=scale1*((u/(1-u))**(1/shape1)), else x=scale2*((u/(1-u))**(1/shape2)) where U is uniform(0,1) like you said.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 17:17:32 GMT</pubDate>
    <dc:creator>EricL</dc:creator>
    <dc:date>2020-12-09T17:17:32Z</dc:date>
    <item>
      <title>Simulating piecewise loglogistic data in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/703471#M34011</link>
      <description>&lt;P&gt;hi-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am simulating log-logistic data based on the below method but does anyone have SAS code for simulating a piecewise loglogistic model with 2 parts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*Using F = 1 / ((1 + x/alpha)**beta), CDF for LLOGISTIC (LL)*;&lt;BR /&gt;*Simulate a uniform (0,1) random variable, so then the LL would correspond to*;&lt;BR /&gt;*x=alpha*((u/(1-u))**(1/beta))*;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/703471#M34011</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-12-03T18:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating piecewise loglogistic data in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/703611#M34014</link>
      <description>&lt;P&gt;calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 13:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/703611#M34014</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-12-04T13:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating piecewise loglogistic data in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/704414#M34061</link>
      <description>&lt;P&gt;Can you provide more details, please? Provide a reference or more details about what you mean by a "2-part piecewise log-logistic model." How many explanatory variables? How many are continuous?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One interpretation is that you want to use a segmented model where the model has one form for x &amp;lt; x0 and another form for x &amp;gt; x0. You can use PROC NLIN to fit models like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For simulation, you can generate a random value for x. If x &amp;lt; x0 then the mean value (eta) is given by the first model. Otherwise, the mean is given by the second model. The apply logistic simulation as usual: p=logistic(eta); Y = rand("Bernoulli", p);&amp;nbsp; For more details, see&lt;A href="https://blogs.sas.com/content/iml/2019/05/06/simulate-glim.html" target="_self"&gt;&amp;nbsp;"How to simulate data from a generalized linear model."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/704414#M34061</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-12-08T14:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating piecewise loglogistic data in SAS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/704813#M34104</link>
      <description>&lt;P&gt;thanks for response.&amp;nbsp; Figured out what I needed to do to simulate data I needed.&amp;nbsp; I new the mixture probability so I just did&lt;/P&gt;&lt;P&gt;if u&amp;lt;=p then x=scale1*((u/(1-u))**(1/shape1)), else x=scale2*((u/(1-u))**(1/shape2)) where U is uniform(0,1) like you said.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 17:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Simulating-piecewise-loglogistic-data-in-SAS/m-p/704813#M34104</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-12-09T17:17:32Z</dc:date>
    </item>
  </channel>
</rss>

