diff --git a/DESCRIPTION b/DESCRIPTION index 8034398..0060998 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: ergm.ego -Version: 1.1-704 -Date: 2023-05-30 +Version: 1.1-729 +Date: 2024-10-09 Title: Fit, Simulate and Diagnose Exponential-Family Random Graph Models to Egocentrically Sampled Network Data Authors@R: c( person(c("Pavel", "N."), "Krivitsky", role=c("aut","cre"), email="pavel@statnet.org", comment=c(ORCID="0000-0002-9101-3362")), @@ -32,7 +32,7 @@ Description: Utilities for managing egocentrically sampled network data and a wr License: GPL-3 + file LICENSE URL: https://statnet.org BugReports: https://github.com/statnet/ergm.ego/issues -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2.9000 Roxygen: list(markdown = TRUE) Encoding: UTF-8 LazyData: true diff --git a/R/EgoStat.R b/R/EgoStat.R index 59fd2ac..f581ca8 100644 --- a/R/EgoStat.R +++ b/R/EgoStat.R @@ -153,17 +153,17 @@ split_aaties_by_ego <- function(x, egor){ h } -#' \code{\link[ergm]{ergm}} Terms Implemented for -#' \code{\link{egor}} +#' [ergm()] Terms Implemented for +#' [`egor`] #' -#' This page describes the \code{\link[ergm]{ergm}} terms (and hence network +#' This page describes the [ergm()] terms (and hence network #' statistics) for which inference based on egocentrically sampled data is -#' implemented in \code{ergm.ego} package. Other packages may add their own +#' implemented in \CRANpkg{ergm.ego} package. Other packages may add their own #' terms. These functions should not be called by the end-user. #' #' The current recommendation for any package implementing additional #' egocentric calculator terms is to create a help file with a name or alias -#' \code{ergm.ego-terms}, so that \code{help("ergm.ego-terms")} will +#' \code{\link{ergm.ego-terms}}, so that \code{help("ergm.ego-terms")} will #' list egocentric ERGM terms available from all loaded packages. #' #' @@ -178,9 +178,9 @@ split_aaties_by_ego <- function(x, egor){ #' \describe{ \item{Special-purpose terms:}{ \describe{ #' \item{netsize.adj(edges=+1, mutual=0, transitiveties=0, #' cyclicalties=0)}{A special-purpose term equivalent to a linear -#' combination of \code{\link[ergm]{edges-ergmTerm}}, -#' \code{\link[ergm]{mutual-ergmTerm}}, \code{\link[ergm]{transitiveties-ergmTerm}}, and -#' \code{\link[ergm]{cyclicalties-ergmTerm}}, to house the network-size +#' combination of \code{\link[ergm:edges-ergmTerm]{edges}}, +#' \code{\link[ergm:mutual-ergmTerm]{mutual}}, \code{\link[ergm:transitiveties-ergmTerm]{transitiveties}}, and +#' \code{\link[ergm:cyclicalties-ergmTerm]{cyclicalties}}, to house the network-size #' adjustment offset. This term is added to the model automatically #' and should not be used in the model formula directly. } } } #' @@ -216,7 +216,7 @@ split_aaties_by_ego <- function(x, egor){ #' evaluated, some inferential results and standard error calculation #' methods may not be applicable. #' -#' @seealso \code{\link[ergm]{ergm-terms}} +#' @seealso [`ergmTerm`] #' @keywords models NULL diff --git a/R/control.ergm.ego.R b/R/control.ergm.ego.R index 0d41f23..2cb4774 100644 --- a/R/control.ergm.ego.R +++ b/R/control.ergm.ego.R @@ -9,10 +9,10 @@ ################################################################################ -#' Control parameters for \code{\link{ergm.ego}}. +#' Control parameters for [ergm.ego()]. #' #' Constructs and checks the list of control parameters for estimation by -#' \code{\link{ergm.ego}}. +#' [ergm.ego()]. #' #' #' @param ppopsize,ppopsize.mul Parameters to determine the size @@ -78,12 +78,12 @@ #' number of nominations. Used to be `FALSE`, now `TRUE` in light of #' the findings of Krivitsky et. al (2020). #' -#' @param ergm Control parameters for the \code{\link[ergm]{ergm}()} call -#' to fit the model, constructed by \code{\link[ergm]{control.ergm}()}. +#' @param ergm Control parameters for the [ergm()] call +#' to fit the model, constructed by [control.ergm()]. #' @param \dots Not used at this time. #' @return A list with arguments as components. #' @author Pavel N. Krivitsky -#' @seealso \code{\link[ergm]{control.ergm}()} +#' @seealso [control.ergm()] #' @references #' #' Pavel N. Krivitsky and Martina Morris (2017). "Inference for social network models from egocentrically sampled data, with application to understanding persistent racial disparities in HIV prevalence in the US." *Annals of Applied Statistics*, 11(1): 427–455. \doi{10.1214/16-AOAS1010} diff --git a/R/control.simulate.ergm.ego.R b/R/control.simulate.ergm.ego.R index 2877b6d..98b11a1 100644 --- a/R/control.simulate.ergm.ego.R +++ b/R/control.simulate.ergm.ego.R @@ -9,10 +9,10 @@ ################################################################################ -#' Control parameters for \code{\link{simulate.ergm.ego}}. +#' Control parameters for [simulate.ergm.ego()]. #' #' Constructs and checks the list of control parameters for simulation by -#' \code{\link{simulate.ergm.ego}}. +#' [simulate.ergm.ego()]. #' #' #' @param ppop.wt Because each ego must be represented in the pseuodopopulation @@ -27,12 +27,12 @@ #' the sum of these rounded freqencies.} #' \item{"sample"}{Resample in proportion to \eqn{w_i}.} } #' -#' @param SAN A list of control parameters for \code{\link[ergm]{san}} -#' constructed by \code{\link[ergm]{control.ergm}}, called to construct a +#' @param SAN A list of control parameters for [san()] +#' constructed by [control.ergm()], called to construct a #' pseudopopulation network consistent with the data. #' @param simulate A list of control parameters for -#' \code{\link[ergm]{simulate.formula}} constructed by -#' \code{\link[ergm]{control.simulate}}, called to simulate from the model fit. +#' [simulate.formula()] constructed by +#' [control.simulate()], called to simulate from the model fit. #' @param \dots Not used at this time. #' @return A list with arguments as components. #' @author Pavel N. Krivitsky diff --git a/R/degreedist.R b/R/degreedist.R index 3536e78..5c62c85 100644 --- a/R/degreedist.R +++ b/R/degreedist.R @@ -17,7 +17,7 @@ #' graph. #' #' @aliases degreedist -#' @param object A \code{\link{egor}} object. +#' @param object A [`egor`] object. #' @param freq,prob Whether to plot the raw frequencies or the conditional #' proportions of the degree values. Defaults to the latter. #' @param by A character vector giving the name of a vertex attribute; if @@ -36,8 +36,7 @@ #' if `by=NULL` or a matrix with a row for each category if not. If #' \code{plot==TRUE} returns invisibly. #' -#' @seealso \code{\link{degreedist}}, -#' \code{\link[ergm:summary_formula]{summary}} +#' @seealso [degreedist()], \code{\link[ergm:summary_formula]{summary}} for formulas. #' @examples #' #' data(faux.mesa.high) @@ -151,12 +150,12 @@ degreedist.egor <- function(object, freq = FALSE, prob = !freq, #' Summarizing the mixing among groups in an egocentric dataset #' #' A \code{\link[network]{mixingmatrix}} method for -#' \code{\link{egor}} objects, to return counts of how often a ego +#' [`egor`] objects, to return counts of how often a ego #' of each group nominates an alter of each group. #' #' #' @aliases mixingmatrix -#' @param object A \code{\link{egor}} object. +#' @param object A [`egor`] object. #' @param attrname A character vector containing the name of the network #' attribute whose mixing matrix is wanted. #' @param rowprob Whether the counts should be normalized by row sums. That is, @@ -166,11 +165,11 @@ degreedist.egor <- function(object, freq = FALSE, prob = !freq, #' @param ... Additional arguments, currently unused. #' @return A matrix with a row and a column for each level of \code{attrname}. #' -#' Note that, unlike \code{\link[network]{mixingmatrix}}, what is counted are +#' Note that, unlike [network::mixingmatrix()], what is counted are #' \emph{nominations}, not ties. This means that under an egocentric census, #' the diagonal of \code{mixingmatrix.egor} will be twice that returned by -#' \code{\link[network]{mixingmatrix}} for the original undirected network. -#' @seealso \code{\link[network]{mixingmatrix}}, \code{\link[ergm]{nodemix-ergmTerm}}, +#' [network::mixingmatrix()] for the original undirected network. +#' @seealso [network::mixingmatrix()], \code{\link[ergm:nodemix-ergmTerm]{nodemix}} ERGM term, #' \code{\link[ergm.ego]{summary}} method for egocentric data #' @examples #' diff --git a/R/egor.R b/R/egor.R index 9d68cbe..d267fd8 100644 --- a/R/egor.R +++ b/R/egor.R @@ -9,15 +9,14 @@ ################################################################################ -#' Convert (deprecated) \code{\link{egodata}} Objects to -#' \code{\link{egor}} Objects +#' Convert (deprecated) [`egodata`] Objects to [`egor`] Objects #' #' @aliases egodata #' -#' @param x a \code{\link{egodata}} object +#' @param x an [`egodata`] object #' @param ... additional arguments, currently unused. #' -#' @return An \code{\link{egor}} object. +#' @return An [`egor`] object. #' #' @author Pavel N. Krivitsky #' @keywords manip methods @@ -34,21 +33,21 @@ as.egor.egodata <- function(x, ...){ #' @export as_egor.egodata <- as.egor.egodata -#' Construct an Egocentric View of a \code{\link{network}} Object +#' Construct an Egocentric View of a [`network`] Object #' -#' Given a \code{\link[network]{network}} object, construct an -#' \code{\link{egor}} object representing a census of all the actors in the +#' Given a [`network`] object, construct an +#' [`egor`] object representing a census of all the actors in the #' network. Used mainly for testing. #' #' -#' @param x A \code{\link[network]{network}} object. +#' @param x A [`network`] object. #' @param special.cols Vertex attributes that should not be copied to the #' \code{egos} and \code{alters} tables. Defaults to attributes special to the -#' \code{\link[network]{network}} objects. +#' [`network`] objects. #' @param ... Additional arguments, currently unused. -#' @return An \code{\link{egor}} object. +#' @return An [`egor`] object. #' @author Pavel N. Krivitsky -#' @seealso \code{\link{template_network}}, which performs the inverse +#' @seealso [template_network()], which performs the inverse #' operation (though drops the ties). #' @keywords datagen manip #' @examples @@ -92,14 +91,14 @@ as.egor.network<-function(x,special.cols=c("na"),...){ #' Construct an Empty ``Template'' Network Consistent with an Egocentric Sample #' #' Taking an object with ego information, constructs a -#' \code{\link[network]{network}} object with no edges whose vertices have the +#' [`network`] object with no edges whose vertices have the #' attributes of the egos in the dataset, replicating the egos as needed, and #' taking into accounts their sampling weights. #' #' -#' @param x A \code{\link{egor}} object. +#' @param x A [`egor`] object. #' @param N The target number of vertices the output network should have. -#' @param scaling If \code{\link{egor}} contains weights or \code{N} is not +#' @param scaling If [`egor`] contains weights or \code{N} is not #' a multiple of number of egos in the sample, it may not be possible, for a #' finite \code{N} to represent each ego exactly according to its relative #' weight, and \code{scaling} controls how the fractional egos are allocated: @@ -109,9 +108,9 @@ as.egor.network<-function(x,special.cols=c("na"),...){ #' these rounded freqencies.} \item{"sample"}{Resample in #' proportion to \eqn{w_i}.} } #' @param ... Additional arguments, currently unused. -#' @return A \code{\link[network]{network}} object. +#' @return A [`network`] object. #' @author Pavel N. Krivitsky -#' @seealso \code{\link{as.egor.network}}, which performs the inverse +#' @seealso [as.egor.network()], which performs the inverse #' operation. #' @keywords manip #' @examples diff --git a/R/ergm.ego.R b/R/ergm.ego.R index 321b8d9..4631ac0 100644 --- a/R/ergm.ego.R +++ b/R/ergm.ego.R @@ -12,18 +12,18 @@ #' Inference for Exponential-Family Random Graph Models based on Egocentrically #' Sampled Data #' -#' A wrapper around the \code{\link[ergm]{ergm}} to fit an ERGM to an -#' \code{\link{egor}}. +#' A wrapper around the [ergm()] to fit an ERGM to an +#' [`egor`]. #' #' -#' @param formula An \code{\link{formula}} object, of the form \code{e -#' ~ }, where \code{e} is a \code{\link{egor}} -#' object. See \code{\link[ergm]{ergm}} for details and examples. +#' @param formula A [`formula`] object, of the form \code{e +#' ~ }, where \code{e} is a [`egor`] +#' object. See [ergm()] for details and examples. #' #' For a list of currently implemented egocentric terms for the RHS, see -#' \code{\link{ergm.ego-terms}}. -#' @param constraints A one-sided formula \code{\link{formula}} giving -#' the sample space constraints. See \code{\link[ergm]{ergm}} for +#' [`ergm.ego-terms`]. +#' @param constraints A one-sided formula [`formula`] giving +#' the sample space constraints. See [ergm()] for #' details and examples. #' #' @param popsize The size \eqn{|N|} of the finite population network @@ -43,11 +43,11 @@ #' when the terms need them for models that scale. #' @param na.rm How to handle missing actor attributes in egos or alters, #' when the terms need them for models that do not scale. -#' @param \dots Additional arguments passed to \code{\link[ergm]{ergm}}. -#' @param control A \code{\link{control.ergm.ego}} control list. -#' @param do.fit Whether to actually call \code{\link[ergm]{ergm}} -#' @return An object of class \code{ergm.ego} inheriting from -#' \code{\link[ergm]{ergm}}, with the following additional or overridden +#' @param \dots Additional arguments passed to [ergm()]. +#' @param control A [control.ergm.ego()] control list. +#' @param do.fit Whether to actually call [ergm()] +#' @return An object of class [`ergm.ego`] inheriting from +#' [`ergm`], with the following additional or overridden #' elements: #' \item{"v"}{Variance-covariance matrix of the estimate of the #' sufficient statistics} @@ -55,7 +55,7 @@ #' statistics} #' \item{"egor"}{The [`egor`] object passed} #' \item{"popsize"}{Population network size used} -#' \item{"ppopsize"}{Pseudopopulation size used, see \code{\link{control.ergm.ego}}} +#' \item{"ppopsize"}{Pseudopopulation size used, see [control.ergm.ego()]} #' \item{"coef"}{The #' coefficients, along with the network size adjustment \code{netsize.adj} #' coefficient.} @@ -82,7 +82,7 @@ #' Models." \emph{Statistical Methodology}, 8(4): 319–339. \doi{10.1016/j.stamet.2011.01.005} #' #' @keywords models -#' @seealso \code{\link[ergm]{ergm}()} +#' @seealso [ergm()] #' @examples #' \donttest{ #' data(faux.mesa.high) diff --git a/R/gof.ergm.ego.R b/R/gof.ergm.ego.R index c57029e..09d886a 100644 --- a/R/gof.ergm.ego.R +++ b/R/gof.ergm.ego.R @@ -84,24 +84,24 @@ #' Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph #' Model fit to Egocentrically Sampled Data #' -#' \code{\link{gof.ergm.ego}} implements the \code{\link[ergm]{gof}} method for -#' \code{\link{ergm.ego}} fit objects. +#' [gof.ergm.ego()] implements the [gof()] method for +#' [`ergm.ego`] fit objects. #' #' -#' @param object An \code{\link{ergm.ego}} fit. +#' @param object An [`ergm.ego`] fit. #' @param ... Additional arguments. Unused by [gof.ergm.ego()], passed to #' [ergm::plot.gof()] by [plot.gof.ergm.ego()] #' @param GOF A string specifying the statistics whose goodness of fit is to be #' evaluated. Currently, only \dQuote{degree}, \dQuote{espartners} and \dQuote{model} are -#' implemented; see \code{\link[ergm]{gof}} documentation for details. +#' implemented; see [gof()] documentation for details. #' @param control A list to control parameters, constructed using -#' \code{\link{control.gof.formula}} or \code{\link{control.gof.ergm}} (which +#' [control.gof.formula()] or [control.gof.ergm()] (which #' have different defaults). #' @param verbose Provide verbose information on the progress of the #' simulation. -#' @return An object of class [`gof.ergm.ego`], inheriting from \code{\link[ergm:gof.ergm]{gof.ergm}}. +#' @return An object of class [`gof.ergm.ego`], inheriting from [gof.ergm()]. #' @author Pavel N. Krivitsky -#' @seealso For examples, see \code{\link{ergm.ego}}. +#' @seealso For examples, see [ergm.ego()]. #' @keywords models #' @examples #' \donttest{ diff --git a/R/simulate.ergm.ego.R b/R/simulate.ergm.ego.R index 66e3bc7..f829139 100644 --- a/R/simulate.ergm.ego.R +++ b/R/simulate.ergm.ego.R @@ -9,13 +9,13 @@ ################################################################################ -#' Simulate from a \code{\link{ergm.ego}} fit. +#' Simulate from a [ergm.ego()] fit. #' -#' A wrapper around \code{\link[ergm]{simulate.formula}} to simulate networks -#' from an ERGM fit using \code{\link{ergm.ego}}. -#' -#' -#' @param object An \code{\link{ergm.ego}} fit. +#' A wrapper around [simulate.formula()] to simulate networks +#' from an ERGM fit using [ergm.ego()]. +#' +#' +#' @param object An [`ergm.ego`] fit. #' @param nsim Number of realizations to simulate. #' @template seed #' @param popsize,basis A network size to which to scale the model for @@ -24,23 +24,22 @@ #' actors; or a [`network`] object to use as is. `basis` is provided #' for consistency with [ergm()], [ergm.ego()], [simulate.ergm()], #' and others. If both are specified, `popsize` overrules. -#' @param control A \code{\link{control.simulate.ergm.ego}} control list. +#' @param control A [control.simulate.ergm.ego()] control list. #' @param output one of `"network"`, `"stats"`, `"edgelist"`, #' `"pending_update_network"`, or, for future compatibility, #' `"ergm_state"`. See help for [simulate.ergm()] for explanation. #' -#' @param constraints,\dots Additional arguments passed to \code{\link[ergm]{san}} and -#' \code{\link[ergm]{simulate.formula}}. +#' @param constraints,\dots Additional arguments passed to [san()] and +#' [simulate.formula()]. #' @template verbose #' @return The ouput has the same format (with the same options) as -#' \code{\link[ergm]{simulate.formula}}. If \code{output="stats"} is passed, an +#' [simulate.formula()]. If \code{output="stats"} is passed, an #' additional attribute, \code{"ppopsize"} is set, giving the actual size of #' the network reconstructed, when the \code{pop.wt} control parameter is set #' to \code{"round"} and \code{"popsize"} is not a multiple of the egocentric #' sample size or the sampling weights. #' @author Pavel N. Krivitsky -#' @seealso \code{\link[ergm]{simulate.formula}}, -#' \code{\link[ergm]{simulate.ergm}} +#' @seealso [simulate.formula()], [simulate.ergm()] #' @references #' #' * Pavel N. Krivitsky and Martina Morris (2017). "Inference for social network models from egocentrically sampled data, with application to understanding persistent racial disparities in HIV prevalence in the US." *Annals of Applied Statistics*, 11(1): 427–455. \doi{10.1214/16-AOAS1010} diff --git a/R/summary.statistics.egor.R b/R/summary.statistics.egor.R index bb06e87..e3e4b58 100644 --- a/R/summary.statistics.egor.R +++ b/R/summary.statistics.egor.R @@ -7,21 +7,21 @@ # # Copyright 2015-2023 Statnet Commons ################################################################################ -#' Calculation of ERGM-style summary statistics for \code{\link{egor}} +#' Calculation of ERGM-style summary statistics for [`egor`] #' objects. #' #' Used to calculate the specified network statistics inferred from a -#' \code{\link{egor}} object. +#' [`egor`] object. #' #' #' @aliases summary_formula.egodata summary summary_formula -#' @param object An \code{\link[ergm]{ergm}}-style formula with a -#' \code{\link{egor}} object as the LHS. +#' @param object An [ergm()]-style formula with a +#' [`egor`] object as the LHS. #' #' For a list of currently implemented egocentric terms for the RHS, see -#' \code{\link{ergm.ego-terms}}. +#' [`ergm.ego-terms`]. #' @param \dots Not used at this time. -#' @param basis An optional \code{\link{egor}} object relative to which the +#' @param basis An optional [`egor`] object relative to which the #' statistics should be calculated. #' @param individual If \code{FALSE} (the default), calculate the estimated #' per-capita statistics, weighted according to the ego weights, then scale @@ -35,8 +35,8 @@ #' \code{individual==TRUE}, a matrix with a row for each ego, giving that ego's #' contribution to the network statistic. #' @author Pavel N. Krivitsky -#' @seealso \code{\link[ergm]{summary_formula}}, -#' \code{\link[ergm]{summary_formula.ergm}} +#' @seealso [summary_formula()], +#' [summary_formula.ergm()] #' @references #' #' * Pavel N. Krivitsky and Martina Morris (2017). "Inference for social network models from egocentrically sampled data, with application to understanding persistent racial disparities in HIV prevalence in the US." *Annals of Applied Statistics*, 11(1): 427–455. \doi{10.1214/16-AOAS1010} diff --git a/man/EgoStat-internal.Rd b/man/EgoStat-internal.Rd index 04f7467..40be142 100644 --- a/man/EgoStat-internal.Rd +++ b/man/EgoStat-internal.Rd @@ -49,7 +49,7 @@ split_aaties_by_ego(x, egor) \arguments{ \item{x, bin}{a vector.} -\item{egor}{an \code{\link[=egor]{egor()}} object.} +\item{egor}{an \code{\link[egor:egor]{egor()}} object.} \item{...}{Additional arguments to subroutines.} } diff --git a/man/as.egor.egodata.Rd b/man/as.egor.egodata.Rd index fc4bfcd..3c138f6 100644 --- a/man/as.egor.egodata.Rd +++ b/man/as.egor.egodata.Rd @@ -4,24 +4,22 @@ \alias{as.egor.egodata} \alias{egodata} \alias{as_egor.egodata} -\title{Convert (deprecated) \code{\link{egodata}} Objects to -\code{\link{egor}} Objects} +\title{Convert (deprecated) \code{\link{egodata}} Objects to \code{\link[egor:egor]{egor}} Objects} \usage{ \method{as.egor}{egodata}(x, ...) as_egor.egodata(x, ...) } \arguments{ -\item{x}{a \code{\link{egodata}} object} +\item{x}{an \code{\link{egodata}} object} \item{...}{additional arguments, currently unused.} } \value{ -An \code{\link{egor}} object. +An \code{\link[egor:egor]{egor}} object. } \description{ -Convert (deprecated) \code{\link{egodata}} Objects to -\code{\link{egor}} Objects +Convert (deprecated) \code{\link{egodata}} Objects to \code{\link[egor:egor]{egor}} Objects } \author{ Pavel N. Krivitsky diff --git a/man/as.egor.network.Rd b/man/as.egor.network.Rd index c4c54c6..5ed12dd 100644 --- a/man/as.egor.network.Rd +++ b/man/as.egor.network.Rd @@ -2,25 +2,25 @@ % Please edit documentation in R/egor.R \name{as.egor.network} \alias{as.egor.network} -\title{Construct an Egocentric View of a \code{\link{network}} Object} +\title{Construct an Egocentric View of a \code{\link[network:network]{network}} Object} \usage{ \method{as.egor}{network}(x, special.cols = c("na"), ...) } \arguments{ -\item{x}{A \code{\link[network]{network}} object.} +\item{x}{A \code{\link[network:network]{network}} object.} \item{special.cols}{Vertex attributes that should not be copied to the \code{egos} and \code{alters} tables. Defaults to attributes special to the -\code{\link[network]{network}} objects.} +\code{\link[network:network]{network}} objects.} \item{...}{Additional arguments, currently unused.} } \value{ -An \code{\link{egor}} object. +An \code{\link[egor:egor]{egor}} object. } \description{ -Given a \code{\link[network]{network}} object, construct an -\code{\link{egor}} object representing a census of all the actors in the +Given a \code{\link[network:network]{network}} object, construct an +\code{\link[egor:egor]{egor}} object representing a census of all the actors in the network. Used mainly for testing. } \examples{ @@ -28,7 +28,7 @@ network. Used mainly for testing. # See example(ergm.ego) and example(template_network). } \seealso{ -\code{\link{template_network}}, which performs the inverse +\code{\link[=template_network]{template_network()}}, which performs the inverse operation (though drops the ties). } \author{ diff --git a/man/control.ergm.ego.Rd b/man/control.ergm.ego.Rd index 2c50478..d277fd4 100644 --- a/man/control.ergm.ego.Rd +++ b/man/control.ergm.ego.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/control.ergm.ego.R \name{control.ergm.ego} \alias{control.ergm.ego} -\title{Control parameters for \code{\link{ergm.ego}}.} +\title{Control parameters for \code{\link[=ergm.ego]{ergm.ego()}}.} \usage{ control.ergm.ego( ppopsize = c("auto", "samp", "pop"), @@ -34,7 +34,7 @@ as \code{"samp"}.} \item{a number}{set \eqn{|N'|} directly (\code{popsize.mul} ignored)} -\item{a \code{\link{network}} object}{use the specified network as the +\item{a \code{\link[network:network]{network}} object}{use the specified network as the pseudo-population network directly; use at your own risk} \item{a data frame}{use the specified data frame as the @@ -82,8 +82,8 @@ fixed.} }} number of nominations. Used to be \code{FALSE}, now \code{TRUE} in light of the findings of Krivitsky et. al (2020).} -\item{ergm}{Control parameters for the \code{\link[ergm]{ergm}()} call -to fit the model, constructed by \code{\link[ergm]{control.ergm}()}.} +\item{ergm}{Control parameters for the \code{\link[ergm:ergm]{ergm()}} call +to fit the model, constructed by \code{\link[ergm:control.ergm]{control.ergm()}}.} \item{\dots}{Not used at this time.} } @@ -92,7 +92,7 @@ A list with arguments as components. } \description{ Constructs and checks the list of control parameters for estimation by -\code{\link{ergm.ego}}. +\code{\link[=ergm.ego]{ergm.ego()}}. } \references{ Pavel N. Krivitsky and Martina Morris (2017). "Inference for social network models from egocentrically sampled data, with application to understanding persistent racial disparities in HIV prevalence in the US." \emph{Annals of Applied Statistics}, 11(1): 427–455. \doi{10.1214/16-AOAS1010} @@ -106,7 +106,7 @@ Network Size and Composition Effects in Exponential-Family Random Graph Models." \emph{Statistical Methodology}, 8(4): 319–339. \doi{10.1016/j.stamet.2011.01.005} } \seealso{ -\code{\link[ergm]{control.ergm}()} +\code{\link[ergm:control.ergm]{control.ergm()}} } \author{ Pavel N. Krivitsky diff --git a/man/control.simulate.ergm.ego.Rd b/man/control.simulate.ergm.ego.Rd index 61702b1..82fc196 100644 --- a/man/control.simulate.ergm.ego.Rd +++ b/man/control.simulate.ergm.ego.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/control.simulate.ergm.ego.R \name{control.simulate.ergm.ego} \alias{control.simulate.ergm.ego} -\title{Control parameters for \code{\link{simulate.ergm.ego}}.} +\title{Control parameters for \code{\link[=simulate.ergm.ego]{simulate.ergm.ego()}}.} \usage{ control.simulate.ergm.ego( ppop.wt = c("round", "sample"), @@ -24,13 +24,13 @@ round it to the nearest integer. Then, the \eqn{|N'|} actually used will be the sum of these rounded freqencies.} \item{"sample"}{Resample in proportion to \eqn{w_i}.} }} -\item{SAN}{A list of control parameters for \code{\link[ergm]{san}} -constructed by \code{\link[ergm]{control.ergm}}, called to construct a +\item{SAN}{A list of control parameters for \code{\link[ergm:san]{san()}} +constructed by \code{\link[ergm:control.ergm]{control.ergm()}}, called to construct a pseudopopulation network consistent with the data.} \item{simulate}{A list of control parameters for -\code{\link[ergm]{simulate.formula}} constructed by -\code{\link[ergm]{control.simulate}}, called to simulate from the model fit.} +\code{\link[ergm:simulate.formula]{simulate.formula()}} constructed by +\code{\link[ergm:control.simulate.ergm]{control.simulate()}}, called to simulate from the model fit.} \item{\dots}{Not used at this time.} } @@ -39,7 +39,7 @@ A list with arguments as components. } \description{ Constructs and checks the list of control parameters for simulation by -\code{\link{simulate.ergm.ego}}. +\code{\link[=simulate.ergm.ego]{simulate.ergm.ego()}}. } \seealso{ control.simulate, control.san diff --git a/man/degreedist.egor.Rd b/man/degreedist.egor.Rd index 024e77d..b3ddb6a 100644 --- a/man/degreedist.egor.Rd +++ b/man/degreedist.egor.Rd @@ -18,7 +18,7 @@ ) } \arguments{ -\item{object}{A \code{\link{egor}} object.} +\item{object}{A \code{\link[egor:egor]{egor}} object.} \item{freq, prob}{Whether to plot the raw frequencies or the conditional proportions of the degree values. Defaults to the latter.} @@ -62,6 +62,5 @@ degreedist(faux.mesa.high) } \seealso{ -\code{\link{degreedist}}, -\code{\link[ergm:summary_formula]{summary}} +\code{\link[=degreedist]{degreedist()}}, \code{\link[ergm:summary_formula]{summary}} for formulas. } diff --git a/man/ergm.ego-terms.Rd b/man/ergm.ego-terms.Rd index 1ce1360..77cc555 100644 --- a/man/ergm.ego-terms.Rd +++ b/man/ergm.ego-terms.Rd @@ -11,18 +11,18 @@ \alias{terms-ergm} \alias{terms.ergm} \alias{EgoStat} -\title{\code{\link[ergm]{ergm}} Terms Implemented for -\code{\link{egor}}} +\title{\code{\link[ergm:ergm]{ergm()}} Terms Implemented for +\code{\link[egor:egor]{egor}}} \description{ -This page describes the \code{\link[ergm]{ergm}} terms (and hence network +This page describes the \code{\link[ergm:ergm]{ergm()}} terms (and hence network statistics) for which inference based on egocentrically sampled data is -implemented in \code{ergm.ego} package. Other packages may add their own +implemented in \CRANpkg{ergm.ego} package. Other packages may add their own terms. These functions should not be called by the end-user. } \details{ The current recommendation for any package implementing additional egocentric calculator terms is to create a help file with a name or alias -\code{ergm.ego-terms}, so that \code{help("ergm.ego-terms")} will +\code{\link{ergm.ego-terms}}, so that \code{help("ergm.ego-terms")} will list egocentric ERGM terms available from all loaded packages. } \section{Currently implemented egocentric statistics}{ @@ -33,9 +33,9 @@ parameters. The simplest way to do this is usually via \code{? TERM}. \describe{ \item{Special-purpose terms:}{ \describe{ \item{netsize.adj(edges=+1, mutual=0, transitiveties=0, cyclicalties=0)}{A special-purpose term equivalent to a linear -combination of \code{\link[ergm]{edges-ergmTerm}}, -\code{\link[ergm]{mutual-ergmTerm}}, \code{\link[ergm]{transitiveties-ergmTerm}}, and -\code{\link[ergm]{cyclicalties-ergmTerm}}, to house the network-size +combination of \code{\link[ergm:edges-ergmTerm]{edges}}, +\code{\link[ergm:mutual-ergmTerm]{mutual}}, \code{\link[ergm:transitiveties-ergmTerm]{transitiveties}}, and +\code{\link[ergm:cyclicalties-ergmTerm]{cyclicalties}}, to house the network-size adjustment offset. This term is added to the model automatically and should not be used in the model formula directly. } } } @@ -77,6 +77,6 @@ methods may not be applicable. } \seealso{ -\code{\link[ergm]{ergm-terms}} +\code{\link[ergm:ergmTerm]{ergmTerm}} } \keyword{models} diff --git a/man/ergm.ego.Rd b/man/ergm.ego.Rd index 6136eda..25b3ca0 100644 --- a/man/ergm.ego.Rd +++ b/man/ergm.ego.Rd @@ -19,9 +19,9 @@ ergm.ego( ) } \arguments{ -\item{formula}{An \code{\link{formula}} object, of the form \code{e - ~ }, where \code{e} is a \code{\link{egor}} -object. See \code{\link[ergm]{ergm}} for details and examples. +\item{formula}{A \code{\link{formula}} object, of the form \code{e + ~ }, where \code{e} is a \code{\link[egor:egor]{egor}} +object. See \code{\link[ergm:ergm]{ergm()}} for details and examples. For a list of currently implemented egocentric terms for the RHS, see \code{\link{ergm.ego-terms}}.} @@ -40,14 +40,14 @@ adjustment.} \item{offset.coef}{A vector of coefficients for the offset terms.} \item{constraints}{A one-sided formula \code{\link{formula}} giving -the sample space constraints. See \code{\link[ergm]{ergm}} for +the sample space constraints. See \code{\link[ergm:ergm]{ergm()}} for details and examples.} -\item{\dots}{Additional arguments passed to \code{\link[ergm]{ergm}}.} +\item{\dots}{Additional arguments passed to \code{\link[ergm:ergm]{ergm()}}.} -\item{basis}{a value (usually an \code{\link{egor}}) to override the LHS of the formula.} +\item{basis}{a value (usually an \code{\link[egor:egor]{egor}}) to override the LHS of the formula.} -\item{control}{A \code{\link{control.ergm.ego}} control list.} +\item{control}{A \code{\link[=control.ergm.ego]{control.ergm.ego()}} control list.} \item{na.action}{How to handle missing actor attributes in egos or alters, when the terms need them for models that scale.} @@ -55,19 +55,19 @@ when the terms need them for models that scale.} \item{na.rm}{How to handle missing actor attributes in egos or alters, when the terms need them for models that do not scale.} -\item{do.fit}{Whether to actually call \code{\link[ergm]{ergm}}} +\item{do.fit}{Whether to actually call \code{\link[ergm:ergm]{ergm()}}} } \value{ -An object of class \code{ergm.ego} inheriting from -\code{\link[ergm]{ergm}}, with the following additional or overridden +An object of class \code{\link{ergm.ego}} inheriting from +\code{\link[ergm:ergm]{ergm}}, with the following additional or overridden elements: \item{"v"}{Variance-covariance matrix of the estimate of the sufficient statistics} \item{"m"}{Estimate of the sufficient statistics} -\item{"egor"}{The \code{\link{egor}} object passed} +\item{"egor"}{The \code{\link[egor:egor]{egor}} object passed} \item{"popsize"}{Population network size used} -\item{"ppopsize"}{Pseudopopulation size used, see \code{\link{control.ergm.ego}}} +\item{"ppopsize"}{Pseudopopulation size used, see \code{\link[=control.ergm.ego]{control.ergm.ego()}}} \item{"coef"}{The coefficients, along with the network size adjustment \code{netsize.adj} coefficient.} @@ -81,8 +81,8 @@ incorporating sampling). } statistics with respect to the model parameters} } \description{ -A wrapper around the \code{\link[ergm]{ergm}} to fit an ERGM to an -\code{\link{egor}}. +A wrapper around the \code{\link[ergm:ergm]{ergm()}} to fit an ERGM to an +\code{\link[egor:egor]{egor}}. } \examples{ \donttest{ @@ -115,7 +115,7 @@ Network Size and Composition Effects in Exponential-Family Random Graph Models." \emph{Statistical Methodology}, 8(4): 319–339. \doi{10.1016/j.stamet.2011.01.005} } \seealso{ -\code{\link[ergm]{ergm}()} +\code{\link[ergm:ergm]{ergm()}} } \author{ Pavel N. Krivitsky diff --git a/man/gof.ergm.ego.Rd b/man/gof.ergm.ego.Rd index 9b34881..cf3aab0 100644 --- a/man/gof.ergm.ego.Rd +++ b/man/gof.ergm.ego.Rd @@ -24,10 +24,10 @@ Model fit to Egocentrically Sampled Data} \item{GOF}{A string specifying the statistics whose goodness of fit is to be evaluated. Currently, only \dQuote{degree}, \dQuote{espartners} and \dQuote{model} are -implemented; see \code{\link[ergm]{gof}} documentation for details.} +implemented; see \code{\link[ergm:gof]{gof()}} documentation for details.} \item{control}{A list to control parameters, constructed using -\code{\link{control.gof.formula}} or \code{\link{control.gof.ergm}} (which +\code{\link[ergm:control.gof]{control.gof.formula()}} or \code{\link[ergm:control.gof]{control.gof.ergm()}} (which have different defaults).} \item{verbose}{Provide verbose information on the progress of the @@ -38,10 +38,10 @@ simulation.} \item{ego.conf.level}{confidence level for the observed statistic estimates as well.} } \value{ -An object of class \code{\link{gof.ergm.ego}}, inheriting from \code{\link[ergm:gof.ergm]{gof.ergm}}. +An object of class \code{\link{gof.ergm.ego}}, inheriting from \code{\link[ergm:gof]{gof.ergm()}}. } \description{ -\code{\link{gof.ergm.ego}} implements the \code{\link[ergm]{gof}} method for +\code{\link[=gof.ergm.ego]{gof.ergm.ego()}} implements the \code{\link[ergm:gof]{gof()}} method for \code{\link{ergm.ego}} fit objects. An enhanced plotting method is also provided, giving uncertainty bars for the observed statistics as well. @@ -72,7 +72,7 @@ plot(deggof) } } \seealso{ -For examples, see \code{\link{ergm.ego}}. +For examples, see \code{\link[=ergm.ego]{ergm.ego()}}. } \author{ Pavel N. Krivitsky diff --git a/man/mixingmatrix.egor.Rd b/man/mixingmatrix.egor.Rd index 7fba403..725da98 100644 --- a/man/mixingmatrix.egor.Rd +++ b/man/mixingmatrix.egor.Rd @@ -8,7 +8,7 @@ \method{mixingmatrix}{egor}(object, attrname, rowprob = FALSE, weight = TRUE, ...) } \arguments{ -\item{object}{A \code{\link{egor}} object.} +\item{object}{A \code{\link[egor:egor]{egor}} object.} \item{attrname}{A character vector containing the name of the network attribute whose mixing matrix is wanted.} @@ -24,14 +24,14 @@ the calculation (\code{TRUE}, the default) or ignored (\code{FALSE}).} \value{ A matrix with a row and a column for each level of \code{attrname}. -Note that, unlike \code{\link[network]{mixingmatrix}}, what is counted are +Note that, unlike \code{\link[network:mixingmatrix]{network::mixingmatrix()}}, what is counted are \emph{nominations}, not ties. This means that under an egocentric census, the diagonal of \code{mixingmatrix.egor} will be twice that returned by -\code{\link[network]{mixingmatrix}} for the original undirected network. +\code{\link[network:mixingmatrix]{network::mixingmatrix()}} for the original undirected network. } \description{ A \code{\link[network]{mixingmatrix}} method for -\code{\link{egor}} objects, to return counts of how often a ego +\code{\link[egor:egor]{egor}} objects, to return counts of how often a ego of each group nominates an alter of each group. } \examples{ @@ -44,6 +44,6 @@ fmh.ego <- as.egor(faux.mesa.high) } \seealso{ -\code{\link[network]{mixingmatrix}}, \code{\link[ergm]{nodemix-ergmTerm}}, +\code{\link[network:mixingmatrix]{network::mixingmatrix()}}, \code{\link[ergm:nodemix-ergmTerm]{nodemix}} ERGM term, \code{\link[ergm.ego]{summary}} method for egocentric data } diff --git a/man/nodal_attributes-API.Rd b/man/nodal_attributes-API.Rd index 8e0ebaf..5d8e8a4 100644 --- a/man/nodal_attributes-API.Rd +++ b/man/nodal_attributes-API.Rd @@ -88,7 +88,7 @@ the formula's environment.} \item{attr}{A vector of length equal to the number of nodes, specifying the attribute vector.} -\item{egor}{An \code{\link{egor}} object.} +\item{egor}{An \code{\link[egor:egor]{egor}} object.} \item{levels}{Starting set of levels to use; defaults to the sorted list of unique attributes.} @@ -111,12 +111,12 @@ intended to parallel \link[ergm:nodal_attributes-API]{ergm::nodal_attributes-API \code{ergm.ego_get_vattr} extracts and processes the specified nodal attribute vector. It is strongly recommended that -\code{\link[=check.ErgmTerm]{check.ErgmTerm()}}'s corresponding +\code{\link[ergm:check.ErgmTerm]{check.ErgmTerm()}}'s corresponding \code{vartype="function,formula,character"} (using the \code{ERGM_VATTR_SPEC} constant). \code{ergm.ego_attr_levels} filters the levels of the -attribute. It is strongly recommended that \code{\link[=check.ErgmTerm]{check.ErgmTerm()}}'s +attribute. It is strongly recommended that \code{\link[ergm:check.ErgmTerm]{check.ErgmTerm()}}'s corresponding \code{vartype="function,formula,character,numeric,logical,AsIs,NULL"} (using the \code{ERGM_LEVELS_SPEC} constant). @@ -160,7 +160,7 @@ beconverted to character).} } \section{Functions}{ \itemize{ -\item \code{COLLAPSE_SMALLEST()}: A version of \code{\link[ergm:nodal_attributes]{ergm::COLLAPSE_SMALLEST()}} that can handle both \code{\link{network}} and \code{\link{egodata}} objects. +\item \code{COLLAPSE_SMALLEST()}: A version of \code{\link[ergm:nodal_attributes]{ergm::COLLAPSE_SMALLEST()}} that can handle both \code{\link[network:network]{network}} and \code{\link{egodata}} objects. }} \examples{ diff --git a/man/simulate.ergm.ego.Rd b/man/simulate.ergm.ego.Rd index 7be38b2..57b13fb 100644 --- a/man/simulate.ergm.ego.Rd +++ b/man/simulate.ergm.ego.Rd @@ -2,7 +2,7 @@ % Please edit documentation in R/simulate.ergm.ego.R \name{simulate.ergm.ego} \alias{simulate.ergm.ego} -\title{Simulate from a \code{\link{ergm.ego}} fit.} +\title{Simulate from a \code{\link[=ergm.ego]{ergm.ego()}} fit.} \usage{ \method{simulate}{ergm.ego}( object, @@ -26,21 +26,21 @@ \item{seed}{Seed value (integer) for the random number generator. See \code{\link[base]{set.seed}}.} -\item{constraints, \dots}{Additional arguments passed to \code{\link[ergm]{san}} and -\code{\link[ergm]{simulate.formula}}.} +\item{constraints, \dots}{Additional arguments passed to \code{\link[ergm:san]{san()}} and +\code{\link[ergm:simulate.formula]{simulate.formula()}}.} \item{popsize, basis}{A network size to which to scale the model for simulation; a \code{\link{data.frame}} with at least those ego attributes used to estimate the model to simulate over a specific set of -actors; or a \code{\link{network}} object to use as is. \code{basis} is provided -for consistency with \code{\link[=ergm]{ergm()}}, \code{\link[=ergm.ego]{ergm.ego()}}, \code{\link[=simulate.ergm]{simulate.ergm()}}, +actors; or a \code{\link[network:network]{network}} object to use as is. \code{basis} is provided +for consistency with \code{\link[ergm:ergm]{ergm()}}, \code{\link[=ergm.ego]{ergm.ego()}}, \code{\link[ergm:simulate.ergm]{simulate.ergm()}}, and others. If both are specified, \code{popsize} overrules.} -\item{control}{A \code{\link{control.simulate.ergm.ego}} control list.} +\item{control}{A \code{\link[=control.simulate.ergm.ego]{control.simulate.ergm.ego()}} control list.} \item{output}{one of \code{"network"}, \code{"stats"}, \code{"edgelist"}, \code{"pending_update_network"}, or, for future compatibility, -\code{"ergm_state"}. See help for \code{\link[=simulate.ergm]{simulate.ergm()}} for explanation.} +\code{"ergm_state"}. See help for \code{\link[ergm:simulate.ergm]{simulate.ergm()}} for explanation.} \item{verbose}{A logical or an integer to control the amount of progress and diagnostic information to be printed. \code{FALSE}/\code{0} @@ -50,15 +50,15 @@ down processing.} } \value{ The ouput has the same format (with the same options) as -\code{\link[ergm]{simulate.formula}}. If \code{output="stats"} is passed, an +\code{\link[ergm:simulate.formula]{simulate.formula()}}. If \code{output="stats"} is passed, an additional attribute, \code{"ppopsize"} is set, giving the actual size of the network reconstructed, when the \code{pop.wt} control parameter is set to \code{"round"} and \code{"popsize"} is not a multiple of the egocentric sample size or the sampling weights. } \description{ -A wrapper around \code{\link[ergm]{simulate.formula}} to simulate networks -from an ERGM fit using \code{\link{ergm.ego}}. +A wrapper around \code{\link[ergm:simulate.formula]{simulate.formula()}} to simulate networks +from an ERGM fit using \code{\link[=ergm.ego]{ergm.ego()}}. } \examples{ @@ -82,8 +82,7 @@ Models." \emph{Statistical Methodology}, 8(4): 319–339. \doi{10.1016/j.stamet. } } \seealso{ -\code{\link[ergm]{simulate.formula}}, -\code{\link[ergm]{simulate.ergm}} +\code{\link[ergm:simulate.formula]{simulate.formula()}}, \code{\link[ergm:simulate.ergm]{simulate.ergm()}} } \author{ Pavel N. Krivitsky diff --git a/man/summary_formula.egor.Rd b/man/summary_formula.egor.Rd index e8e6b27..033b89b 100644 --- a/man/summary_formula.egor.Rd +++ b/man/summary_formula.egor.Rd @@ -6,7 +6,7 @@ \alias{summary} \alias{summary_formula} \alias{*.ergm.ego_svystat} -\title{Calculation of ERGM-style summary statistics for \code{\link{egor}} +\title{Calculation of ERGM-style summary statistics for \code{\link[egor:egor]{egor}} objects.} \usage{ \method{summary_formula}{egor}(object, ..., basis = NULL, individual = FALSE, scaleto = NULL) @@ -14,15 +14,15 @@ objects.} \method{*}{ergm.ego_svystat}(x, y) } \arguments{ -\item{object}{An \code{\link[ergm]{ergm}}-style formula with a -\code{\link{egor}} object as the LHS. +\item{object}{An \code{\link[ergm:ergm]{ergm()}}-style formula with a +\code{\link[egor:egor]{egor}} object as the LHS. For a list of currently implemented egocentric terms for the RHS, see \code{\link{ergm.ego-terms}}.} \item{\dots}{Not used at this time.} -\item{basis}{An optional \code{\link{egor}} object relative to which the +\item{basis}{An optional \code{\link[egor:egor]{egor}} object relative to which the statistics should be calculated.} \item{individual}{If \code{FALSE} (the default), calculate the estimated @@ -44,7 +44,7 @@ contribution to the network statistic. } \description{ Used to calculate the specified network statistics inferred from a -\code{\link{egor}} object. +\code{\link[egor:egor]{egor}} object. } \section{Functions}{ \itemize{ @@ -81,8 +81,8 @@ Models." \emph{Statistical Methodology}, 8(4): 319–339. \doi{10.1016/j.stamet. } } \seealso{ -\code{\link[ergm]{summary_formula}}, -\code{\link[ergm]{summary_formula.ergm}} +\code{\link[=summary_formula]{summary_formula()}}, +\code{\link[ergm:summary_formula]{summary_formula.ergm()}} } \author{ Pavel N. Krivitsky diff --git a/man/template_network.Rd b/man/template_network.Rd index bd79e99..690efa8 100644 --- a/man/template_network.Rd +++ b/man/template_network.Rd @@ -13,13 +13,13 @@ template_network(x, ...) \method{template_network}{egor}(x, N, scaling = c("round", "sample"), ...) } \arguments{ -\item{x}{A \code{\link{egor}} object.} +\item{x}{A \code{\link[egor:egor]{egor}} object.} \item{...}{Additional arguments, currently unused.} \item{N}{The target number of vertices the output network should have.} -\item{scaling}{If \code{\link{egor}} contains weights or \code{N} is not +\item{scaling}{If \code{\link[egor:egor]{egor}} contains weights or \code{N} is not a multiple of number of egos in the sample, it may not be possible, for a finite \code{N} to represent each ego exactly according to its relative weight, and \code{scaling} controls how the fractional egos are allocated: @@ -30,19 +30,19 @@ these rounded freqencies.} \item{"sample"}{Resample in proportion to \eqn{w_i}.} }} } \value{ -A \code{\link[network]{network}} object. +A \code{\link[network:network]{network}} object. } \description{ Taking an object with ego information, constructs a -\code{\link[network]{network}} object with no edges whose vertices have the +\code{\link[network:network]{network}} object with no edges whose vertices have the attributes of the egos in the dataset, replicating the egos as needed, and taking into accounts their sampling weights. } \section{Methods (by class)}{ \itemize{ -\item \code{template_network(data.frame)}: method for \code{\link{data.frame}}s and \code{\link{tibble}}s, specifying ego composition directly. +\item \code{template_network(data.frame)}: method for \code{\link{data.frame}}s and \code{\link[tibble:tibble]{tibble}}s, specifying ego composition directly. -\item \code{template_network(egor)}: method for \code{\link{egor}} objects; weights, if any, are obtained from the \code{egor}'s design information. +\item \code{template_network(egor)}: method for \code{\link[egor:egor]{egor}} objects; weights, if any, are obtained from the \code{egor}'s design information. }} \examples{ @@ -63,7 +63,7 @@ summary(fmh2.template, print.adj = FALSE) } \seealso{ -\code{\link{as.egor.network}}, which performs the inverse +\code{\link[=as.egor.network]{as.egor.network()}}, which performs the inverse operation. } \author{