<?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: Trying to replicate the margin command from STATA in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/355229#M2308</link>
    <description>&lt;P&gt;Did you mean model a conditional logistical regression ?&lt;/P&gt;
&lt;P&gt;Check STRATA statement , and example in documentation.&lt;/P&gt;</description>
    <pubDate>Tue, 02 May 2017 12:43:42 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-05-02T12:43:42Z</dc:date>
    <item>
      <title>Trying to replicate the margin command from STATA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/354990#M2306</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;I am still new in SAS&amp;nbsp;and trying to modelize my first probit model. I am using the following sequence of command in order to obtain my probit estimate:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;logistic&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=pop_final;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SEX (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REF&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"M"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) AGEGR (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REF&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"3"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;) NON_EE (&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REF&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"0"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;)/&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;PARAM&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=REF;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;model&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SCIENCE = SEX AGEGR NON_EE / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;link&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=probit &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;technique&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=newton;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; parameterestimates=prbparms;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=outprb &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;prob&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=p &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;xbeta&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=xbpr;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;However, I would now like to replicate the margins command in STATA (&lt;A href="http://www.stata.com/manuals13/rmargins.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;FONT color="#0066cc"&gt;http://www.stata.com/manuals13/rmargins.pdf&lt;/FONT&gt;&lt;/A&gt;). It allowed me to estimate margins of responses for specified values of covariates of a previously fit model. For example, following my probit model that estimated, in particular, the effect of changing industry of employment following a layoff, I was able to use the margin command to estimate the probability of a workers being laid-off from a specific industry to change industry in his following job.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Would someone know a command in SAS that could replicate what I was able to do with STATA?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thank you in advance&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2017 17:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/354990#M2306</guid>
      <dc:creator>Shawn08</dc:creator>
      <dc:date>2017-05-01T17:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to replicate the margin command from STATA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/355120#M2307</link>
      <description>&lt;P&gt;You can accomplish this with the lsmeans statement in proc genmod.&amp;nbsp; There are a number of other methods to obtain marginal means in SAS.&amp;nbsp; See here for an article that shoudl help you out:&amp;nbsp; &lt;A href="https://support.sas.com/kb/22/604.html" target="_blank"&gt;https://support.sas.com/kb/22/604.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 02:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/355120#M2307</guid>
      <dc:creator>statistician13</dc:creator>
      <dc:date>2017-05-02T02:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to replicate the margin command from STATA</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/355229#M2308</link>
      <description>&lt;P&gt;Did you mean model a conditional logistical regression ?&lt;/P&gt;
&lt;P&gt;Check STRATA statement , and example in documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2017 12:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Trying-to-replicate-the-margin-command-from-STATA/m-p/355229#M2308</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-05-02T12:43:42Z</dc:date>
    </item>
  </channel>
</rss>

