<?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: How type 1 sum of squares is calculated in SAS for a ZIP model ? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/851923#M42168</link>
    <description>proc genmod data=stat;&lt;BR /&gt;&lt;BR /&gt;class a;&lt;BR /&gt;&lt;BR /&gt;model y=x1 x2 x3 x4 a / dist=zip link=log Type1;&lt;BR /&gt;&lt;BR /&gt;zeromodel z1 z2 a /link=logit;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;This is the code snippet related to that part. Could you please tell me the order in which it calculates the type I Sum of Squares?</description>
    <pubDate>Tue, 03 Jan 2023 11:21:17 GMT</pubDate>
    <dc:creator>Uvanpriya</dc:creator>
    <dc:date>2023-01-03T11:21:17Z</dc:date>
    <item>
      <title>How to extract the parameter estimates(given by the model) into the code in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/842817#M41767</link>
      <description>&lt;P&gt;Hi, these days I am working with SAS 9.4 in order to do run some simulations related to zero inflated poisson models. But in order to perform a particular calculation I need to extract the parameter estimates given by the model for each simulation and use them within the SAS code itself . Since I am planning to run 10000 simulations it would be a tedious task if I am to manually extract these parameter estimates. Here I have used the genmod procedure to fit the zero inflated poisson model. So does anyone know how to get this done easily in SAS 9.4?&lt;/P&gt;&lt;P&gt;For an example suppose that there are 3 explanatory variables named as x1,x2 and x3. And let e1,e2,e3 be the parameter estimates corresponding to x1,x2,x3 respectively given by the zero inflated poisson model. So then if I need to calculate a value such as&lt;/P&gt;&lt;P&gt;B=e1*x1 + e2*x2 + e3*x3&lt;/P&gt;&lt;P&gt;how can I extract these ei's into the code?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 04:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/842817#M41767</guid>
      <dc:creator>Uvanpriya</dc:creator>
      <dc:date>2022-11-07T04:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the parameter estimates(given by the model) into the code in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/842856#M41768</link>
      <description>&lt;P&gt;Please post the code you are currently using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully, you are using a single data set to contain all 10,000 samples and are using BY-group processing to run the 10,000 analyses, as explained in &lt;A href="https://blogs.sas.com/content/iml/2012/07/18/simulation-in-sas-the-slow-way-or-the-by-way.html" target="_self"&gt;"Simulation in SAS: The slow way or the BY way."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hopefully, you are also suppressing all ODS tables and graphs, as discussed in &lt;A href="https://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations.html" target="_self"&gt;"Turn off ODS when running simulations in SAS."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, then just use &lt;BR /&gt;ODS OUTPUT ParameterEstimates=PE;&lt;BR /&gt;to capture the 10,000 parameter estimates in a data set. You can then analyze the sampling distribution of the parameter estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To see this process carried out for linear regression, see &lt;A href="https://blogs.sas.com/content/iml/2017/02/01/simulate-samples-linear-regression.html" target="_self"&gt;"Simulate many samples from a linear regression model."&lt;/A&gt;&amp;nbsp;The example uses PROC REG and the OUTEST=PE option to create the parameter estimates, but the main ideas apply to PROC GENMOD and Poisson regression as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 13:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/842856#M41768</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-11-07T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the parameter estimates(given by the model) into the code in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850907#M42126</link>
      <description>&lt;P&gt;Thanks for your answer. Got it sorted out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 07:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850907#M42126</guid>
      <dc:creator>Uvanpriya</dc:creator>
      <dc:date>2022-12-23T07:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How type 1 sum of squares is calculated in SAS for a ZIP model ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850912#M42127</link>
      <description>&lt;P&gt;I do understand how SAS calculates the type I sum of squares when the regression model contains only one function. However when it comes to ZIP model the model has 2 functions;&amp;nbsp;log link function to model the counts that follow the poisson distribution and logit link function to model the probability of structural zeros.&lt;/P&gt;&lt;P&gt;( suppose that log link function has 5 explanatory variables and logit link function has 3 explanatory variables)&lt;/P&gt;&lt;P&gt;So here when i ask SAS to calculate the type I sum of squares it gives me the results for both the sub-models.&lt;/P&gt;&lt;P&gt;So in this case in which order does SAS include variables into the model when calculating type I sum of squares?&amp;nbsp;&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>Fri, 23 Dec 2022 08:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850912#M42127</guid>
      <dc:creator>Uvanpriya</dc:creator>
      <dc:date>2022-12-23T08:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: How type 1 sum of squares is calculated in SAS for a ZIP model ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850949#M42128</link>
      <description>&lt;P&gt;The order is determined by the order of the effects in the MODEL and ZEROMODEL statements. If you post your code, we can tell you the exact order.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 13:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850949#M42128</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-12-23T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: How type 1 sum of squares is calculated in SAS for a ZIP model ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850977#M42132</link>
      <description>&lt;P&gt;proc genmod data=stat;&lt;/P&gt;&lt;P&gt;class a;&lt;/P&gt;&lt;P&gt;model y=x1 x2 x3 x4 a / dist=zip link=log Type1;&lt;/P&gt;&lt;P&gt;zeromodel z1 z2 a /link=logit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;This is the code snippet related to that part. Could you please tell me the order in which it calculates the type I error SS?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 18:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/850977#M42132</guid>
      <dc:creator>Uvanpriya</dc:creator>
      <dc:date>2022-12-23T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How type 1 sum of squares is calculated in SAS for a ZIP model ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/851800#M42160</link>
      <description>&lt;P&gt;proc genmod data=stat;&lt;/P&gt;&lt;P&gt;class a;&lt;/P&gt;&lt;P&gt;model y=x1 x2 x3 x4 a / dist=zip link=log Type1;&lt;/P&gt;&lt;P&gt;zeromodel z1 z2 a /link=logit;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;&lt;P&gt;suppose that I need to calculate the type I sum of squares related to categorical variable 'a' in zeromodel function. Then does it make adjustments for variables in both the models when calculating the type I sum of squares for the variable 'a'?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jan 2023 08:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/851800#M42160</guid>
      <dc:creator>Uvanpriya</dc:creator>
      <dc:date>2023-01-02T08:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How type 1 sum of squares is calculated in SAS for a ZIP model ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/851923#M42168</link>
      <description>proc genmod data=stat;&lt;BR /&gt;&lt;BR /&gt;class a;&lt;BR /&gt;&lt;BR /&gt;model y=x1 x2 x3 x4 a / dist=zip link=log Type1;&lt;BR /&gt;&lt;BR /&gt;zeromodel z1 z2 a /link=logit;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;This is the code snippet related to that part. Could you please tell me the order in which it calculates the type I Sum of Squares?</description>
      <pubDate>Tue, 03 Jan 2023 11:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-extract-the-parameter-estimates-given-by-the-model-into/m-p/851923#M42168</guid>
      <dc:creator>Uvanpriya</dc:creator>
      <dc:date>2023-01-03T11:21:17Z</dc:date>
    </item>
  </channel>
</rss>

