<?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: Conditional Logit in PROC MODEL to enable use of PDL macro in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905061#M4754</link>
    <description>&lt;P&gt;Thanks.&amp;nbsp; But it seems to me that this is also a SAS programming question of how to use PROC MODEL to implement a conditional logit model.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2023 02:02:33 GMT</pubDate>
    <dc:creator>PamG</dc:creator>
    <dc:date>2023-11-29T02:02:33Z</dc:date>
    <item>
      <title>Conditional Logit in PROC MODEL to enable use of PDL macro</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/904929#M4752</link>
      <description>&lt;P&gt;I need to use distributed lag model (DLM) on a binary outcome.&amp;nbsp; There is PDLREG but it can be applied to continuous outcomes. So it seems like the only way I can do this is using PROC MODEL and use %pdl macro.&amp;nbsp; However I am using a 1:5 matched data and need to use conditional logit.&amp;nbsp; How does one implement a conditional logit model in PROC MODEL?&amp;nbsp; I am aware that conditional logit model can be implemented in PROC PHREG or PROC LOGISTIC.&amp;nbsp; My need to use PROC MODEL is that I can use the pdl macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A sample code is given below for a continuous dependent variable.&amp;nbsp; I would like a similar code for conditional logit that would take into account the matched sets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc model data=pdl;
   parms int;                  /* declare the intercept parameter */
   %pdl( xpdl, 6, 4 )          /* declare the lag distribution */
   y = int + %pdl( xpdl, x );  /* define the model equation */
   fit y / list;               /* estimate the parameters */
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally I need to use DLNM model but unfortuantely SAS does not have a procedure in place for this .&amp;nbsp; Now I need to use DLM but seems like I have hit a roadblock with that too.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 16:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/904929#M4752</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-11-28T16:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Logit in PROC MODEL to enable use of PDL macro</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905053#M4753</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot answer your question, but moving it to more appropriate board ("Forecasting and Econometrics" - board).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/ETS User's Guide&lt;BR /&gt;The MODEL Procedure&lt;BR /&gt;Distributed Lag Models and the %PDL Macro&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_model_sect170.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_model_sect170.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 23:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905053#M4753</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-28T23:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Logit in PROC MODEL to enable use of PDL macro</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905061#M4754</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; But it seems to me that this is also a SAS programming question of how to use PROC MODEL to implement a conditional logit model.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 02:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905061#M4754</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-11-29T02:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Logit in PROC MODEL to enable use of PDL macro</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905126#M4755</link>
      <description>&lt;P&gt;While most (the big majority) of the procedures are "pre-written" programs that are built in, some procedures do indeed allow for additional programming within the boundaries of the initial "PROC" and the ending "run;" or "run; quit;" keywords.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Think about PROC NLMIXED, PROC MCMC, PROC MODEL, ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is indeed programming, but it still requires a lot of statistical / econometrical knowledge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The programming board is about data management, data step programming, SQL, macro language, global statements and so on ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Br, Koen&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 08:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905126#M4755</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-29T08:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Logit in PROC MODEL to enable use of PDL macro</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905845#M4758</link>
      <description>&lt;P&gt;An update, Almon lags can easily be created in data step. I will be using these derived variables in conditional logit using PROC LOGISTISTIC&amp;nbsp;and then back-tranform the effects to the original lagged variables.&amp;nbsp; &amp;nbsp;I wish there was an easier way to do it.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2023 16:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Conditional-Logit-in-PROC-MODEL-to-enable-use-of-PDL-macro/m-p/905845#M4758</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-12-02T16:09:28Z</dc:date>
    </item>
  </channel>
</rss>

