<?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 SAS QLIM - deriving Marginal Estimates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719614#M34813</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;The problem: I am using SAS QLIM to generate an Ordered Probit analysis using the folowing code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc qlim;&lt;/P&gt;&lt;P&gt;class &amp;lt;variable names&amp;gt; ;&lt;/P&gt;&lt;P&gt;Model DV = IVs / discrete ;&lt;/P&gt;&lt;P&gt;Ouptut out = &amp;lt;output dataset name&amp;gt; marginal ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DV is an ordinal variable with three levels, coded 0,1,2 where 0= Competely disagree; and 2= Completely agree. IVs are a mixture of binary, ordinal and interval variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code generates marginal estimates for each of the IVs for each of the DV levels 1 and 2, but not for 0. My question is: Is it possible to generate Marginal Estimates for all three levels of the DV (not just two)? I have seen comments online that I might need a macro to do this, but I have never used SAS macro before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 12:24:07 GMT</pubDate>
    <dc:creator>Philip847</dc:creator>
    <dc:date>2021-02-16T12:24:07Z</dc:date>
    <item>
      <title>SAS QLIM - deriving Marginal Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719614#M34813</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;The problem: I am using SAS QLIM to generate an Ordered Probit analysis using the folowing code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc qlim;&lt;/P&gt;&lt;P&gt;class &amp;lt;variable names&amp;gt; ;&lt;/P&gt;&lt;P&gt;Model DV = IVs / discrete ;&lt;/P&gt;&lt;P&gt;Ouptut out = &amp;lt;output dataset name&amp;gt; marginal ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My DV is an ordinal variable with three levels, coded 0,1,2 where 0= Competely disagree; and 2= Completely agree. IVs are a mixture of binary, ordinal and interval variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code generates marginal estimates for each of the IVs for each of the DV levels 1 and 2, but not for 0. My question is: Is it possible to generate Marginal Estimates for all three levels of the DV (not just two)? I have seen comments online that I might need a macro to do this, but I have never used SAS macro before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 12:24:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719614#M34813</guid>
      <dc:creator>Philip847</dc:creator>
      <dc:date>2021-02-16T12:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QLIM - deriving Marginal Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719632#M34816</link>
      <description>&lt;P&gt;From the QLIM documentation (the first example - Ordered Data Modeling), I found this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="xis-refProc"&gt;
&lt;DIV id="etsug.qlim.qlimexample1" class="AAsection"&gt;
&lt;P&gt;By default, ordinal probit/logit models are estimated assuming that the first threshold or limit parameter (mu1) is 0. However, this parameter can also be estimated when the LIMIT1=VARYING option is specified.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is code immediately following that looks like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*-- Ordered Probit --*/
proc qlim data=docvisit;
   model dvisits = sex age agesq income levyplus
                   freepoor freerepa illness actdays hscore
                   chcond1 chcond2 / discrete(d=normal) limit1=varying;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My first thought about this would be that your IV's are not all interval variables, and so there are going to be levels of the categorical variables set to 0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider using the OUTPUT statement to get marginal values or predicted values, and then post-processing those.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Feb 2021 13:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719632#M34816</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-16T13:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QLIM - deriving Marginal Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719695#M34824</link>
      <description>&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked perfectly. Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719695#M34824</guid>
      <dc:creator>Philip847</dc:creator>
      <dc:date>2021-02-16T18:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS QLIM - deriving Marginal Estimates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719712#M34829</link>
      <description>&lt;P&gt;Borrowing from&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;
&lt;P&gt;&lt;SPAN&gt;Do you have other questions? If not, you can close this thread by choosing a response to mark as the "Accepted Solution."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 20:05:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-QLIM-deriving-Marginal-Estimates/m-p/719712#M34829</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-02-16T20:05:35Z</dc:date>
    </item>
  </channel>
</rss>

