Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gof.stergm

Goodness-of-fit methods for STERGM CMLE and CMPLE fits


Description

For now, these are simple wrappers around gof.ergm, print.gof, summary.gof, and plot.gof, respectively, to run goodness-of-fit for formation and dissolution models separately. This may change in the future.

Usage

## S3 method for class 'stergm'
gof(object, ...)

## S3 method for class 'gof.stergm'
print(x, ...)

## S3 method for class 'gof.stergm'
summary(object, ...)

## S3 method for class 'gof.stergm'
plot(x, ..., main = "Goodness-of-fit diagnostics")

Arguments

object

For gof.stergm, stergm conditional MLE (CMLE) or conditional MPLE (CMPLE) fit. For the others, a gof.stergm object returned by gof.stergm.

...

Additional arguments passed through to the respective functions in the ergm package.

x

A gof.stergm object returned by gof.stergm.

main

Gives the title of the goodness-of-fit plots, which will have "Formation:" and "Dissolution:" prepended to it.

Value

For gof.stergm, an object of class gof.stergm, which is simply a list with two named elements: formation and dissolution, each of them a gof returned by gof.ergm.

For the others, nothing.

See Also

stergm(), ergm(), simulate.stergm(), ergm::print.gof(), ergm::plot.gof(), summary.gof, mcmc.diagnostics.ergm

Examples

data(samplk)

# Fit a transition from Time 1 to Time 2
samplk12 <- stergm(list(samplk1, samplk2),
                   formation=~edges+mutual+transitiveties+cyclicalties,
                   dissolution=~edges+mutual+transitiveties+cyclicalties,
                   estimate="CMLE")

samplk12.gof <- gof(samplk12)

samplk12.gof

summary(samplk12.gof)

plot(samplk12.gof)

plot(samplk12.gof, plotlogodds=TRUE)

tergm

Fit, Simulate and Diagnose Models for Network Evolution Based on Exponential-Family Random Graph Models

v3.7.0
GPL-3 + file LICENSE
Authors
Pavel N. Krivitsky [aut, cre] (<https://orcid.org/0000-0002-9101-3362>), Mark S. Handcock [aut, ths], David R. Hunter [ctb], Steven M. Goodreau [ctb, ths], Martina Morris [ctb, ths], Nicole Bohme Carnegie [ctb], Carter T. Butts [ctb], Ayn Leslie-Cook [ctb], Skye Bender-deMoll [ctb], Li Wang [ctb], Kirk Li [ctb], Chad Klumb [ctb]
Initial release
2020-10-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.