## S3 method for class 'btergmgof':
plot(x, boxplot = TRUE, boxplot.mfrow = TRUE,
boxplot.dsp = TRUE, boxplot.esp = TRUE, boxplot.geodist = TRUE,
boxplot.degree = TRUE, boxplot.idegree = TRUE,
boxplot.odegree = TRUE, boxplot.kstar = TRUE, boxplot.istar = TRUE,
boxplot.ostar = TRUE, boxplot.dsp.max = NULL,
boxplot.esp.max = NULL, boxplot.geodist.max = NULL,
boxplot.degree.max = NULL, boxplot.idegree.max = NULL,
boxplot.odegree.max = NULL, boxplot.kstar.max = NULL,
boxplot.istar.max = NULL, boxplot.ostar.max = NULL,
boxplot.transform = function(x) x, boxplot.border = "darkgray",
boxplot.mean.col = "black", boxplot.median.col = "black",
boxplot.lwd = 0.8, boxplot.outline = FALSE, boxplot.ylab = "Frequency",
boxplot.main = NULL, boxplot.ylim = NULL, roc = TRUE, pr = TRUE,
rocpr.add = FALSE, rocpr.avg = c("none", "horizontal", "vertical",
"threshold"), rocpr.spread = c("boxplot", "stderror", "stddev"),
rocpr.lwd = 3, roc.main = NULL, roc.random = FALSE, roc.col = "#bd0017",
roc.random.col = "#bd001744", pr.main = NULL, pr.random = FALSE,
pr.col = "#5886be", pr.random.col = "#5886be44", pr.poly = 0, ...)## S3 method for class 'btergmgof':
print(x, classicgof = TRUE,
rocprgof = TRUE, degeneracy = TRUE, ...)
## S3 method for class 'btergmgof':
summary(object, classicgof = TRUE,
rocprgof = TRUE, degeneracy = TRUE, ...)
btergmgof
object created by calling the gof.btergm method.boxplot.mfrow = FALSE
), or should all statistics be aligned in a single diagram (boxplot.mfrow = TRUE
)? Returning the plots separately can be helpful if the output is redirected tInf
values).boxplot.transform = function(x) x^0.1
or a similar transformation of the values can be used. Nplot.btergm
method."none"
(plot all curves separately), "horizontal"
(horizontal averaging), "vertical"
(vertical averaging), and"stderror"
), standard deviation bars ("stddev"
), or by using box plots (0
is set, nothing special happens. If a value of 1
is set, a straight line is fitted through the PR curve and displayed. Values between 2
and 9
fit higher-order polynomial curves through thbtergmgof
object created by calling the gof.btergm method.btergmgof
objects to the R console. The typical workflow is to estimate a TERGM using the btergm function and save it as an object, then use the gof function to produce a btergmgof
object, and finally use the functions and methods described here to show the output of this resulting object to assess the goodness of fit.The plot
method plots (1) boxplots of network statistics and draws the observed statistics as lines (classic statnet-like GOF boxplots) and (2) receiver operating characteristics (ROC) and precision recall (PR) curves.
The print
and summary
methods show (1) observed versus simulated network statistics (classic statnet-like GOF tables), (2) the area under the ROC curve (AUC) for each observed network, and (3) degeneracy checks by comparing global statistics of simulated versus observed networks.