我正在使用该bife
包使用以下代码对我的数据运行一些条件逻辑回归:
all.industries.logit0 <-
bife(allbuster ~ lag_sectoral_II_TS_100 + lagtradeshareP_agg + lagtradeopenP + lnlaggdpp + lnlaggdpt + lagtradecontrol0 + DefPactPT + duration + arcsin_mindist + nobust + nobustsq + nobustcb | partnercode, sanctions.data.scaled.sitc0, "logit")
summary(all.industries.logit0)
我的论文研究了一个国家将参与制裁破坏(allbuster)的可能性。我对这个lag_sectoral_II_TS_100
变量感兴趣,它是本质上属于行业内的贸易份额(取值 0-100)。
这是我的数据示例:
<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;}
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
overflow:hidden;padding:10px 5px;word-break:normal;}
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
</style>
<table class="tg">
<thead>
<tr>
<th class="tg-0pky">allbuster</th>
<th class="tg-0pky">year</th>
<th class="tg-0pky">partnercode</th>
<th class="tg-0pky">targetcode</th>
<th class="tg-0pky">lag_sectoral_II_TS_100</th>
<th class="tg-0pky">lagtradeshareP_agg</th>
<th class="tg-0pky">lagtradeopenP</th>
<th class="tg-0pky">lnlaggdpp</th>
<th class="tg-0pky">lnlaggdpt</th>
<th class="tg-0pky">lagtradecontrol0</th>
<th class="tg-0pky">DefPactPT</th>
<th class="tg-0pky">duration</th>
<th class="tg-0pky">arcsin_mindist</th>
<th class="tg-0pky">nobust</th>
<th class="tg-0pky">nobustsq</th>
<th class="tg-0pky">nobustcb</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1996</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">516</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0002352</td>
<td class="tg-0pky">.19398443</td>
<td class="tg-0pky">15.81733</td>
<td class="tg-0pky">7.639316</td>
<td class="tg-0pky">4.18e-06</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">9.969781</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1997</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">516</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0000149</td>
<td class="tg-0pky">.2000064</td>
<td class="tg-0pky">15.87503</td>
<td class="tg-0pky">7.648185</td>
<td class="tg-0pky">2.71e-06</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">9.969781</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">.01</td>
<td class="tg-0pky">.01</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1998</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">516</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0001573</td>
<td class="tg-0pky">.19317377</td>
<td class="tg-0pky">15.93804</td>
<td class="tg-0pky">7.882946</td>
<td class="tg-0pky">3.95e-07</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">3</td>
<td class="tg-0pky">9.969781</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1999</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">516</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0001325</td>
<td class="tg-0pky">.195546</td>
<td class="tg-0pky">15.99287</td>
<td class="tg-0pky">7.855143</td>
<td class="tg-0pky">1.70e-06</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">4</td>
<td class="tg-0pky">9.969781</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1993</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0001723</td>
<td class="tg-0pky">.1661832</td>
<td class="tg-0pky">15.65443</td>
<td class="tg-0pky">10.33715</td>
<td class="tg-0pky">.0027139</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1994</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0001002</td>
<td class="tg-0pky">.18485369</td>
<td class="tg-0pky">15.70721</td>
<td class="tg-0pky">10.04633</td>
<td class="tg-0pky">.002362</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">.01</td>
<td class="tg-0pky">.01</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1995</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0005255</td>
<td class="tg-0pky">.19143957</td>
<td class="tg-0pky">15.77115</td>
<td class="tg-0pky">10.16308</td>
<td class="tg-0pky">.0020262</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">3</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1996</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0003638</td>
<td class="tg-0pky">.19398443</td>
<td class="tg-0pky">15.81733</td>
<td class="tg-0pky">10.14361</td>
<td class="tg-0pky">.0019907</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">4</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1997</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0002753</td>
<td class="tg-0pky">.2000064</td>
<td class="tg-0pky">15.87503</td>
<td class="tg-0pky">10.28103</td>
<td class="tg-0pky">.0022142</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">5</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">.01</td>
<td class="tg-0pky">.01</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1998</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0003443</td>
<td class="tg-0pky">.19317377</td>
<td class="tg-0pky">15.93804</td>
<td class="tg-0pky">10.40302</td>
<td class="tg-0pky">.0020716</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">6</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">1999</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0003645</td>
<td class="tg-0pky">.195546</td>
<td class="tg-0pky">15.99287</td>
<td class="tg-0pky">10.36876</td>
<td class="tg-0pky">.0017506</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">7</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">2000</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0003006</td>
<td class="tg-0pky">.21600229</td>
<td class="tg-0pky">16.05465</td>
<td class="tg-0pky">10.43614</td>
<td class="tg-0pky">.0016432</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">8</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">2001</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.000597</td>
<td class="tg-0pky">.18839689</td>
<td class="tg-0pky">16.11848</td>
<td class="tg-0pky">10.10307</td>
<td class="tg-0pky">.0019527</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">9</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">1</td>
<td class="tg-0pky">2002</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">540</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0003657</td>
<td class="tg-0pky">.1843528</td>
<td class="tg-0pky">16.14908</td>
<td class="tg-0pky">10.16851</td>
<td class="tg-0pky">.0018709</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">10</td>
<td class="tg-0pky">9.85504</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1967</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">1.883475</td>
<td class="tg-0pky">.0001858</td>
<td class="tg-0pky">.07263357</td>
<td class="tg-0pky">13.57122</td>
<td class="tg-0pky">7.369401</td>
<td class="tg-0pky">.0003283</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">3</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">.04</td>
<td class="tg-0pky">.08</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1968</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0000787</td>
<td class="tg-0pky">.08028059</td>
<td class="tg-0pky">13.62462</td>
<td class="tg-0pky">7.412975</td>
<td class="tg-0pky">.0002002</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">4</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">3</td>
<td class="tg-0pky">.09</td>
<td class="tg-0pky">.27</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1969</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0000356</td>
<td class="tg-0pky">.0806281</td>
<td class="tg-0pky">13.71434</td>
<td class="tg-0pky">7.380564</td>
<td class="tg-0pky">.0000577</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">5</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">4</td>
<td class="tg-0pky">.16</td>
<td class="tg-0pky">.64</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1970</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">4.31e-07</td>
<td class="tg-0pky">.08234379</td>
<td class="tg-0pky">13.79576</td>
<td class="tg-0pky">7.664122</td>
<td class="tg-0pky">8.16e-06</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">6</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">5</td>
<td class="tg-0pky">.25</td>
<td class="tg-0pky">1.25</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1971</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">6.38e-06</td>
<td class="tg-0pky">.08356485</td>
<td class="tg-0pky">13.85146</td>
<td class="tg-0pky">7.913445</td>
<td class="tg-0pky">8.07e-06</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">7</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">6</td>
<td class="tg-0pky">.36</td>
<td class="tg-0pky">2.16</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1972</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">3.40e-06</td>
<td class="tg-0pky">.09113298</td>
<td class="tg-0pky">13.93617</td>
<td class="tg-0pky">8.049563</td>
<td class="tg-0pky">.0000183</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">8</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">7</td>
<td class="tg-0pky">.49</td>
<td class="tg-0pky">3.43</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1974</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">6.65e-07</td>
<td class="tg-0pky">.09836394</td>
<td class="tg-0pky">14.1502</td>
<td class="tg-0pky">8.304396</td>
<td class="tg-0pky">.0002261</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">10</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">9</td>
<td class="tg-0pky">.81</td>
<td class="tg-0pky">7.29</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1975</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1.10e-07</td>
<td class="tg-0pky">.13093883</td>
<td class="tg-0pky">14.22831</td>
<td class="tg-0pky">8.47965</td>
<td class="tg-0pky">.0001197</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">11</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">10</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">10</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1976</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1.72e-07</td>
<td class="tg-0pky">.14134216</td>
<td class="tg-0pky">14.31435</td>
<td class="tg-0pky">8.544679</td>
<td class="tg-0pky">.0003369</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">12</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">11</td>
<td class="tg-0pky">1.21</td>
<td class="tg-0pky">13.31</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1979</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">552</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">7.37e-06</td>
<td class="tg-0pky">.16919367</td>
<td class="tg-0pky">14.66076</td>
<td class="tg-0pky">8.728274</td>
<td class="tg-0pky">3.51e-06</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">15</td>
<td class="tg-0pky">10.04754</td>
<td class="tg-0pky">14</td>
<td class="tg-0pky">1.96</td>
<td class="tg-0pky">27.44</td>
</tr>
<tr>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1992</td>
<td class="tg-0pky">2</td>
<td class="tg-0pky">615</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">.0063968</td>
<td class="tg-0pky">.16587618</td>
<td class="tg-0pky">15.59558</td>
<td class="tg-0pky">11.34812</td>
<td class="tg-0pky">.0030362</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">1</td>
<td class="tg-0pky">9.283169</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
<td class="tg-0pky">0</td>
</tr>
</tbody>
</table>
我不确定这是否可能,但我想计算我的因变量在行业内贸易份额值范围内的预测概率。我尝试了一些我知道的方法来做到这一点,但没有任何效果。我知道这种类型的回归计算预测概率会出现问题。
我尝试使用effect_plot
,但无济于事。任何帮助将不胜感激。
谢谢!