| logLik.stergm {tergm} | R Documentation |
logLik method for stergm.
Functions to return the log-likelihood associated with a
stergm CMLE fit, evaluating it if
necessary. See logLik.ergm documentation for details
and caveats.
## 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(),
...)
object |
|
add |
Logical: If TRUE, instead of
returning the log-likelihood, return |
force.reeval |
Logical: If TRUE,
reestimate the log-likelihood even if |
eval.loglik |
Logical: If TRUE,
evaluate the log-likelihood if not set on |
control |
A list of control parameters for algorithm
tuning. Constructed using |
... |
Other arguments to the likelihood functions. |
If the log-likelihood was not computed for object,
produces an error unless eval.loglik=TRUE
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.
Hunter, D. R. and Handcock, M. S. (2006) Inference in curved exponential family models for networks, Journal of Computational and Graphical Statistics.
logLik, ergm.bridge.llr, ergm.bridge.dindstart.llk