<?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: Instrumental variable analysis - 2SLS regression and clustering in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/884719#M4709</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have moved your post to the "SAS Forecasting and Econometrics"-board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not heard before about a multi-level 2SLS regression (&lt;SPAN&gt;using instrumental variables (IV))&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With PROC MODEL (available in SAS/ETS, just like PROC SYSLIN), you can do:&amp;nbsp;&lt;BR /&gt;Heteroscedastic Two-Stage Least Squares Regression.&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/app/ets/examples/h2sls/index.htm" target="_blank"&gt;https://support.sas.com/rnd/app/ets/examples/h2sls/index.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_040/etsug/etsug_model_toc.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_040/etsug/etsug_model_toc.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if that will bring you any further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 20:51:32 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-07-13T20:51:32Z</dc:date>
    <item>
      <title>Instrumental variable analysis - 2SLS regression and clustering</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/884523#M4708</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm interested in performing a&amp;nbsp;t&lt;SPAN&gt;wo-stage least-squares regression using an instrumental variable to compute estimated values of the predictor (in the first stage), and then uses those computed values to estimate a linear regression model of the dependent variable (the second stage). From what I've gathered this can be achieved using PROC SYSLIN. However, I'm working with multilevel data and would like to cluster patients within hospitals, I have not seen any documentation regarding clustering/multilevel/hierarchical data in proc syslin, perhaps I've missed it or is there another procedure that better supports the type of analysis?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* 2SLS estimation */
proc syslin data = analytic_iv 2sls; 
	endogenous continuous_opioid_sum; 
	instruments move_avg_1year; 
	model log_Infla_Est_Cost = continuous_opioid_sum;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 17:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/884523#M4708</guid>
      <dc:creator>Shad</dc:creator>
      <dc:date>2023-07-12T17:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Instrumental variable analysis - 2SLS regression and clustering</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/884719#M4709</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have moved your post to the "SAS Forecasting and Econometrics"-board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not heard before about a multi-level 2SLS regression (&lt;SPAN&gt;using instrumental variables (IV))&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With PROC MODEL (available in SAS/ETS, just like PROC SYSLIN), you can do:&amp;nbsp;&lt;BR /&gt;Heteroscedastic Two-Stage Least Squares Regression.&lt;BR /&gt;&lt;A href="https://support.sas.com/rnd/app/ets/examples/h2sls/index.htm" target="_blank"&gt;https://support.sas.com/rnd/app/ets/examples/h2sls/index.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_040/etsug/etsug_model_toc.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/v_040/etsug/etsug_model_toc.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if that will bring you any further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 20:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/884719#M4709</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-07-13T20:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Instrumental variable analysis - 2SLS regression and clustering</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/885184#M4711</link>
      <description>&lt;P&gt;The CPANEL procedure in SAS Econometrics supports 2SLS on panel data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/67/951.html" target="_blank"&gt;https://support.sas.com/kb/67/951.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_040/casecon/casecon_cpanel_syntax09.htm" target="_blank"&gt;SAS Help Center: ENDOGENOUS Statement&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 00:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Instrumental-variable-analysis-2SLS-regression-and-clustering/m-p/885184#M4711</guid>
      <dc:creator>ChanceTGardener</dc:creator>
      <dc:date>2023-07-18T00:02:32Z</dc:date>
    </item>
  </channel>
</rss>

