Closed mbojan closed 2 months ago
Function degreedist() trips if prob is FALSE:
degreedist()
prob
FALSE
library(ergm.ego) data("faux.mesa.high", package="ergm") fmh <- as.egor(faux.mesa.high) degreedist(fmh, plot=TRUE, prob=FALSE) #> Error in degreedist.egor(fmh, plot = TRUE, prob = FALSE): object 'maxfreq' not found
but only if by=NULL because this works:
by=NULL
degreedist(fmh, plot=TRUE, prob=FALSE, by="Sex")
This needs a code fix, right?
Yes. I fixed it, but the checks started to fail for some other reason... I'm looking into it.
Function
degreedist()
trips ifprob
isFALSE
:but only if
by=NULL
because this works: