IQSS / Zelig

A statistical framework that serves as a common interface to a large range of models

Home Page:http://zeligproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relogit function not working

christophergandrud opened this issue · comments

First reported in: #295 by @retrography

Example:

library(Zelig)
data(mid)
r.out <- relogit(conflict ~ major + contig + power + maxdem + mindem + years,
                  data = mid, tau = 1042/303772)
summary(r.out, odds_ratios = TRUE)


Call:
relogit(formula = conflict ~ major + contig + power + maxdem + 
    mindem + years, data = mid, tau = 1042/303772)

Deviance Residuals: 
    Min       1Q   Median       3Q      Max  
-1.0596  -0.0376  -0.0231   2.1085   4.4649  

Coefficients:
             Estimate Std. Error z value Pr(>|z|)    
(Intercept) -7.525688   0.179685 -41.883  < 2e-16 ***
major        2.433432   0.157561  15.444  < 2e-16 ***
contig       4.112491   0.157650  26.086  < 2e-16 ***
power        1.053747   0.217243   4.851 1.23e-06 ***
maxdem       0.048431   0.010065   4.812 1.50e-06 ***
mindem      -0.065249   0.012802  -5.097 3.45e-07 ***
years       -0.063359   0.005705 -11.106  < 2e-16 ***
---
Signif. codes:  0***0.001**0.01*0.05.0.1 ‘ ’ 1

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 3979.5  on 3125  degrees of freedom
Residual deviance: 1868.5  on 3119  degrees of freedom
AIC: 1882.5

Number of Fisher Scoring iterations: 6

@christophergandrud You get this because r.out truly doesn't exist, because the identifier you used was r.out1. I don't think this is what I reported! ;)

relogit is intended exclusively as an internal function and so summary is not supported. Please use zelig with model = relogit.

Documentation is now clearer on this point: be652cb