-
Notifications
You must be signed in to change notification settings - Fork 304
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
term column missing from tidy.ergm
#688
Comments
AAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHH WHY. Yeah I definitely broke this. |
I believe my last PR fixes the issue, and also adds support for finding coefficient older versions of |
This tidier no longer works at all; previously at least it returned something. library(ergm)
#> Loading required package: network
#> network: Classes for Relational Data
#> Version 1.15 created on 2019-04-01.
#> copyright (c) 2005, Carter T. Butts, University of California-Irvine
#> Mark S. Handcock, University of California -- Los Angeles
#> David R. Hunter, Penn State University
#> Martina Morris, University of Washington
#> Skye Bender-deMoll, University of Washington
#> For citation information, type citation("network").
#> Type help("network-package") to get started.
#>
#> ergm: version 3.10.4, created on 2019-06-10
#> Copyright (c) 2019, Mark S. Handcock, University of California -- Los Angeles
#> David R. Hunter, Penn State University
#> Carter T. Butts, University of California -- Irvine
#> Steven M. Goodreau, University of Washington
#> Pavel N. Krivitsky, University of Wollongong
#> Martina Morris, University of Washington
#> with contributions from
#> Li Wang
#> Kirk Li, University of Washington
#> Skye Bender-deMoll, University of Washington
#> Chad Klumb
#> Based on "statnet" project software (statnet.org).
#> For license and citation information see statnet.org/attribution
#> or type citation("ergm").
#> NOTE: Versions before 3.6.1 had a bug in the implementation of the
#> bd() constriant which distorted the sampled distribution somewhat.
#> In addition, Sampson's Monks datasets had mislabeled vertices. See
#> the NEWS and the documentation for more details.
#> NOTE: Some common term arguments pertaining to vertex attribute
#> and level selection have changed in 3.10.0. See terms help for
#> more details. Use 'options(ergm.term=list(version="3.9.4"))' to
#> use old behavior.
library(broom)
# Using the same example as the ergm package
# Load the Florentine marriage network data
data(florentine)
# Fit a model where the propensity to form ties between
# families depends on the absolute difference in wealth
gest <- ergm(flomarriage ~ edges + absdiff("wealth"))
#> Warning: `set_attrs()` is deprecated as of rlang 0.3.0
#> This warning is displayed once per session.
#> Starting maximum pseudolikelihood estimation (MPLE):
#> Evaluating the predictor and response matrix.
#> Maximizing the pseudolikelihood.
#> Finished MPLE.
#> Stopping at the initial estimate.
#> Evaluating log-likelihood at the estimate.
# Show terms, coefficient estimates and errors
tidy(gest)
#> Error in add_column(., term = names(x[[coefs]]), .before = 1): could not find function "add_column" Created on 2019-06-25 by the reprex package (v0.3.0) |
Did the tests pass? How was a PR that breaks a working tidier merged into the master?! |
The tests have been failing for a while and I haven't had time to fix them so I didn't check. A mistake but looks easy to fix. I'll take a look tomorrow. |
Hi @IndrajeetPatil and @alexpghayes PR #721 above fixes the issue, which is my fault, not Alex's. I was misled by partial-match warnings about I've performed some tests on all Note that the NEWS file of the package reports a change in the |
Sorry, my point wasn't to blame anyone. I just wanted to make sure that we have the infrastructure (tests, CI, etc.) in place to catch this. If anything changes with the most used tidiers (lm, glm, clm, etc.), it is immediately noticed by the users. The changes to less used tidiers, therefore, deserve much more scrutiny in the form of tests, etc., and I just wanted to make sure that we had those since I had guessed that you must have made the PR after your local tests passed. In #710, I had tried to do some cleanup to get all the tests running so that the CI builds can finally succeed, which would make it easier to evaluate if PRs are breaking anything. |
Don't apologise, my previous PR did break things :) I tried running the tests on
It looks like @alexpghayes is trying to 'export' the tests t a different package: |
TODO:
|
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
The tidy dataframe for these objects no longer contains the
term
column. Not 100%, but I think the source of this is rewrite in 2e98c1e:broom/R/ergm-tidiers.R
Lines 65 to 72 in 27c21e1
Here is a
reprex
:Created on 2019-04-10 by the reprex package (v0.2.1.9000)
Session info
The text was updated successfully, but these errors were encountered: