Nothing
# File R/InitErgmm.random.R in package latentnet, part of the
# Statnet suite of packages for network analysis, https://statnet.org .
#
# This software is distributed under the GPL-3 license. It is free,
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
################################################################################
#' @export
InitErgmm.rsender<-function(model, var=1, var.df=3){
if (!is.directed(model[["Yg"]]))
stop("Sender effects are not allowed with an undirected network; use 'sociality'", call.=FALSE)
model[["sender"]]<-TRUE
model[["prior"]][["sender.var"]]<-var
model[["prior"]][["sender.var.df"]]<-var.df
model
}
#' @export
InitErgmm.rreceiver<-function(model, var=1, var.df=3){
if (!is.directed(model[["Yg"]]))
stop("receiver effects are not allowed with an undirected network; use 'sociality'", call.=FALSE)
model[["receiver"]]<-TRUE
model[["prior"]][["receiver.var"]]<-var
model[["prior"]][["receiver.var.df"]]<-var.df
model
}
#' @export
InitErgmm.rsociality<-function(model, var=1, var.df=3){
model[["sociality"]]<-TRUE
model[["prior"]][["sociality.var"]]<-var
model[["prior"]][["sociality.var.df"]]<-var.df
model
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.