R中QAP Logistic回归的Pseudo-R ^ 2度量sna软件包中的netlogit

问题描述

我需要更好地理解R中sna包中netlogit的输出。下面您可以找到一个在线发布的示例(https://rpubs.com/pjmurphy/338798),该示例为我的问题提供了基础:

  1. 结果提供了两个伪R ^ 2度量,(Dn-Dr)/(Dn-Dr + dfn):0.4250345和(Dn-Dr)/ Dn:0.5332452。这些是什么?有什么不同?我该如何解释它们?一个比另一个更好用吗?

  2. 什么是正确的总分数:0.875?我该怎么解释?


nlog<-netlogit(Padgett_Business,list(Padgett_Marriage,Padgett_Party),reps=1000)
summary(nlog)

## Network Logit Model
## 
## Coefficients:
##             Estimate    Exp(b)    Pr(<=b) Pr(>=b) Pr(>=|b|)
## (intercept) -2.57893819 0.0758545 0.000   1.000   0.000    
## x1           2.17792200 8.8279428 0.999   0.001   0.001    
## x2          -0.02228475 0.9779617 0.517   0.483   0.972    
## 
## Goodness of Fit Statistics:
## 
## Null deviance: 332.7106 on 240 degrees of freedom
## Residual deviance: 155.2943 on 237 degrees of freedom
## Chi-Squared test of fit improvement:
##   177.4164 on 3 degrees of freedom,p-value 0 
## AIC: 161.2943    BIC: 171.7362 
## Pseudo-R^2 Measures:
##  (Dn-Dr)/(Dn-Dr+dfn): 0.4250345 
##  (Dn-Dr)/Dn: 0.5332452 
## Contingency Table (predicted (rows) x actual (cols)):
## 
##       0     1
## 0   210    30
## 1     0     0
## 
##  Total Fraction Correct: 0.875 
##  Fraction Predicted 1s Correct: NaN 
##  Fraction Predicted 0s Correct: 0.875 
##  False Negative Rate: 1 
##  False Positive Rate: 0 
## 
## Test Diagnostics:
## 
##  Null Hypothesis: qap 
##  Replications: 1000 
##  Distribution Summary:
## 
##        (intercept)        x1        x2
## Min      -7.240807 -2.540211 -2.995598
## 1stQ     -6.537942 -0.820302 -1.010798
## Median   -6.266030 -0.328922 -0.103392
## Mean     -6.230127  0.049667 -0.006711
## 3rdQ     -5.947601  0.813030  0.899497
## Max      -4.705737  5.194956  4.716553

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...