Skip to content

Commit 01fe829

Browse files
committed
In ergm_model() documentation, ergm_preprocess_response() usage is now explained.
fixes #459
1 parent 69ca4eb commit 01fe829

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ergm
2-
Version: 4.2-6930
3-
Date: 2022-05-26
2+
Version: 4.2-6932
3+
Date: 2022-05-27
44
Title: Fit, Simulate and Diagnose Exponential-Family Models for Networks
55
Authors@R: c(
66
person("Mark S.", "Handcock", role=c("aut"), email="[email protected]"),

R/ergm_model.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#' @param formula An [ergm()]
2525
#' formula of the form \code{network ~ model.term(s)} or \code{~
2626
#' model.term(s)}.
27-
#' @param nw The network of interest; if passed, the LHS of `formula` is ignored. This is the recommended usage.
27+
#' @param nw The network of interest, optionally instrumented with [ergm_preprocess_response()] to have a response attribute specification; if passed, the LHS of `formula` is ignored. This is the recommended usage.
2828
#' @param silent logical, whether to print the warning messages from the
2929
#' initialization of each model term.
3030
#' @param \dots additional parameters for model formulation
@@ -33,13 +33,14 @@
3333
#' @param env a throwaway argument needed to prevent conflicts with some usages of `ergm_model`. The initialization environment is *always* taken from the `formula`.
3434
#' @param offset.decorate logical; whether offset coefficient and parameter names should be enclosed in `"offset()"`.
3535
#' @param object An `ergm_model` object.
36+
#' @note Earlier versions also had an optional `response=` parameter that, if not `NULL`, switched to valued mode and used the edge attribute named in `response=` as the response. This is no longer used; instead, the response is to be set on `nw` via `ergm_preprocess_response(nw, response)`.
3637
#' @return `ergm_model` returns an `ergm_model` object as a list
3738
#' containing:
3839
#' \item{terms}{a list of terms and 'term components' initialized by the
3940
#' appropriate \code{InitErgmTerm.X} function.}
4041
#' \item{etamap}{the theta -> eta mapping as a list returned from
4142
#' <ergm.etamap>}
42-
#' @seealso [summary.ergm_model()]
43+
#' @seealso [summary.ergm_model()], [ergm_preprocess_response()]
4344
#' @keywords internal
4445
#' @export
4546
ergm_model <- function(formula, nw=NULL, silent=FALSE, ..., term.options=list(), extra.aux=list(), env=globalenv(), offset.decorate=TRUE){

man/ergm_model.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)