Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summary model fit output #27

Open
martinamorris opened this issue Jun 5, 2021 · 2 comments
Open

summary model fit output #27

martinamorris opened this issue Jun 5, 2021 · 2 comments

Comments

@martinamorris
Copy link
Member

Here is what we get now from summary(model.fit)

Call:
tergm(formula = samplist ~ Form(~edges + mutual + cyclicalties + 
    transitiveties) + Diss(~edges + mutual + cyclicalties + transitiveties), 
    estimate = "CMLE", times = c(1:3))

Monte Carlo Conditional Maximum Likelihood Results:

                    Estimate Std. Error MCMC % z value Pr(>|z|)    
Form~edges           -3.4885     0.3584      0  -9.734   <1e-04 ***
Form~mutual           2.0616     0.4069      0   5.067   <1e-04 ***
Form~cyclicalties    -0.1332     0.2097      0  -0.635   0.5254    
Form~transitiveties   0.3993     0.2521      0   1.584   0.1132    
Diss~edges            0.2064     0.3127      0   0.660   0.5093    
Diss~mutual           0.8498     0.5582      0   1.522   0.1279    
Diss~cyclicalties    -0.2134     0.2575      0  -0.829   0.4072    
Diss~transitiveties   0.5137     0.2968      0   1.731   0.0835 .  
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

     Null Deviance: 848.4  on 612  degrees of freedom
 Residual Deviance: 377.2  on 604  degrees of freedom
 
AIC: 393.2  BIC: 428.6  (Smaller is better. MC Std. Err. = 0.6554)

And here is what we used to get from stergm for the same model:

==============================
Summary of formation model fit 
==============================

Formula:   ~edges + mutual + cyclicalties + transitiveties

Iterations:  2 out of 20 

Monte Carlo MLE Results:
               Estimate Std. Error MCMC % z value Pr(>|z|)    
edges           -3.4623     0.3412      0 -10.147   <1e-04 ***
mutual           2.0444     0.4059      0   5.037   <1e-04 ***
cyclicalties    -0.1432     0.1970      0  -0.727   0.4671    
transitiveties   0.3975     0.2353      0   1.689   0.0912 .  
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

     Null Deviance: 693.1  on 500  degrees of freedom
 Residual Deviance: 240.0  on 496  degrees of freedom
 
AIC: 248    BIC: 264.9    (Smaller is better.) 

================================
Summary of dissolution model fit
================================

Formula:   ~edges + mutual + cyclicalties + transitiveties

Iterations:  2 out of 20 

Monte Carlo MLE Results:
               Estimate Std. Error MCMC % z value Pr(>|z|)  
edges            0.2080     0.2990      0   0.696   0.4867  
mutual           0.7987     0.5042      0   1.584   0.1131  
cyclicalties    -0.1886     0.2455      0  -0.768   0.4424  
transitiveties   0.5051     0.2794      0   1.808   0.0706 .
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

     Null Deviance: 155.3  on 112  degrees of freedom
 Residual Deviance: 136.8  on 108  degrees of freedom
 
AIC: 144.8    BIC: 155.6    (Smaller is better.) 

As a user, the old format seems a lot easier to parse -- the formulae are easier to read and the organization of the coefficients facilitates comparisons (where they exist). Can we get something like that back?

@krivit
Copy link
Member

krivit commented Jun 11, 2021

In principle, it should be possible using some string matching. Is this important for 4.0?

@martinamorris
Copy link
Member Author

No, we have enough on the table. This can go in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants