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

logLik.stergm

A logLik method for stergm.


Description

Functions to return the log-likelihood associated with a stergm CMLE fit, evaluating it if necessary. See logLik.ergm documentation for details and caveats.

logLikNull method computes the null model likelihood. See ergm::logLikNull().

Usage

## S3 method for class 'stergm'
logLik(
  object,
  add = FALSE,
  force.reeval = FALSE,
  eval.loglik = add || force.reeval,
  control = control.logLik.stergm(),
  ...
)

## S3 method for class 'stergm'
logLikNull(object, control = control.logLik.stergm(), ...)

Arguments

object

A stergm fit, returned by stergm, for estimate="CMLE".

add

Logical: If TRUE, instead of returning the log-likelihood, return object with log-likelihood value set.

force.reeval

Logical: If TRUE, reestimate the log-likelihood even if object already has an estiamte.

eval.loglik

Logical: If TRUE, evaluate the log-likelihood if not set on object.

control

A list of control parameters for algorithm tuning. Constructed using control.logLik.ergm.

...

Other arguments to the likelihood functions.

Details

If the log-likelihood was not computed for object, produces an error unless eval.loglik=TRUE

Value

For logLik.stergm, add=FALSE (the default), a logLik object. If add=TRUE (the default), an ergm object or a stergm object with the log-likelihood set. For logLikNull.stergm, a logLik object.

References

Hunter, D. R. and Handcock, M. S. (2006) Inference in curved exponential family models for networks, Journal of Computational and Graphical Statistics.

See Also


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.