<?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: What is SAS equivalent of ivprovit in STATA? in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196969#M1228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elizabeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very close.&amp;nbsp; Please see this link in the documentation. &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_qlim_details24.htm" title="http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_qlim_details24.htm"&gt;SAS/ETS(R) 13.2 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need a third model statement for p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a section called "Endogeneity" tests on the same page. &lt;/P&gt;&lt;P&gt;proc qlim data=a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y1 = y2 z1 z2 / discrete &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;endotest(y2);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y2 = z1 z2 z3 z4 / discrete;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For overid, use something similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc qlim data=a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y1 = y2 z1 z2 / discrete overid(y2.z4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y2 = z1 z2 z3 z4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case, overid(p1.z1) . I am not sure it makes any sense to test them simultaneously as compared to one at a time.&amp;nbsp; You could run the proc 3 times and get your answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this time there is no "weak instrument" test in SAS. I will forward this thread to the developer and ask for a recommendation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards-Ken &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 17:42:42 GMT</pubDate>
    <dc:creator>ets_kps</dc:creator>
    <dc:date>2015-03-18T17:42:42Z</dc:date>
    <item>
      <title>What is SAS equivalent of ivprovit in STATA?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196968#M1227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;***Apologies for cross-posting***&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am interested in running the SAS equivalent of ivprobit in STATA. Let’s say I want to run a model with a binary outcome (Y), two continuous endogenous explanatory variables (p1 p2), and one continuous exogenous explanatory variable (p3). I have three instruments (z1 z2 z3). &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; proc qlim data=a;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model Y = p1 p2 p3 / discrete (dist=logit);&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model p1 p2 = p3 z1 z2 z3;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are the SAS codes above correct?&lt;/LI&gt;&lt;LI&gt;I want to test the null hypothesis that the two endogenous explanatory variables (EEV) are in fact exogenous.&amp;nbsp; I understand that when there are two or more EEVs, the test becomes the joint likelihood ratio test of whether corresponding correlations are 0 or not. How do I modify the SAS codes above to run this test?&lt;/LI&gt;&lt;LI&gt;Recall I have three instruments (z1 z2 z3). I want to test the validity of all three of my instruments by specifying the OVERID option. How do I modify the SAS codes above to incorporate the OVERID option?&lt;/LI&gt;&lt;LI&gt;I want to test the strength of all three instruments used. I understand that in 2SLS one can use the F statistic based on the Stock-Yogo recommendation. Can the F statistic be applied in this case (with binary outcome) as a test of weak instruments? If so, how do I modify the SAS codes above?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thanks in advance for any help you can render!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Best,&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Elizabeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2015 13:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196968#M1227</guid>
      <dc:creator>SASNovice2014</dc:creator>
      <dc:date>2015-03-08T13:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: What is SAS equivalent of ivprovit in STATA?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196969#M1228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elizabeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very close.&amp;nbsp; Please see this link in the documentation. &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_qlim_details24.htm" title="http://support.sas.com/documentation/cdl/en/etsug/67525/HTML/default/viewer.htm#etsug_qlim_details24.htm"&gt;SAS/ETS(R) 13.2 User's Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need a third model statement for p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a section called "Endogeneity" tests on the same page. &lt;/P&gt;&lt;P&gt;proc qlim data=a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y1 = y2 z1 z2 / discrete &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;endotest(y2);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y2 = z1 z2 z3 z4 / discrete;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For overid, use something similar to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc qlim data=a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y1 = y2 z1 z2 / discrete overid(y2.z4);&lt;/P&gt;&lt;P&gt;&amp;nbsp; model y2 = z1 z2 z3 z4;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case, overid(p1.z1) . I am not sure it makes any sense to test them simultaneously as compared to one at a time.&amp;nbsp; You could run the proc 3 times and get your answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this time there is no "weak instrument" test in SAS. I will forward this thread to the developer and ask for a recommendation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards-Ken &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 17:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196969#M1228</guid>
      <dc:creator>ets_kps</dc:creator>
      <dc:date>2015-03-18T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is SAS equivalent of ivprovit in STATA?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196970#M1229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elizabeth, &lt;/P&gt;&lt;P&gt;If you want to use a probit model you should specify the DIST= option as NORMAL (not LOGIT ) or just leave this option out as the default is DIST=NORMAL.&lt;/P&gt;&lt;P&gt;Other than that your code looks correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to test if p1 and p2 are in fact exogenous, you can modify your code as &lt;/P&gt;&lt;P&gt;proc qlim data=a; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model Y = p1 p2 p3 / discrete&amp;nbsp; ENDOTEST(p1 p2); &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model p1 p2 = p3 z1 z2 z3; &lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;If you’d like to test the validity of p1 and p2, you can replace the ENDOTEST(p1 p2) with OVERID(p1.z3 p2.z3) in the above code. The choice of which overidentifying instrument to put in the test should not change your result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your last point, recall that Stock-Yogo‘s recommendation of using the F statistic to test the strength of the instruments is based on a linear model. Your model is nonlinear; therefore, I am not sure if you can apply an F test (or an equivalent test) to your model to test the strength of the instruments in a straight forward way.&lt;/P&gt;&lt;P&gt;As Ken mentioned, there is no weak instrument test for your model in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps, &lt;/P&gt;&lt;P&gt;Gunce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 19:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196970#M1229</guid>
      <dc:creator>gunce_sas</dc:creator>
      <dc:date>2015-03-18T19:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is SAS equivalent of ivprovit in STATA?</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196971#M1230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gunce and Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so very much for your helpful response! I really appreciate your guidance. Thanks, Ken, for forwarding and asking the developer for a recommendation. It would be really valuable if SAS incorporates the "test of weak instruments" in its future releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Elizabeth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/What-is-SAS-equivalent-of-ivprovit-in-STATA/m-p/196971#M1230</guid>
      <dc:creator>sasuser2011</dc:creator>
      <dc:date>2015-03-19T18:19:10Z</dc:date>
    </item>
  </channel>
</rss>

