Skip to content

Commit

Permalink
Updated copyright headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
krivit committed Feb 19, 2024
1 parent ef9526a commit 04733e1
Show file tree
Hide file tree
Showing 87 changed files with 129 additions and 93 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Enjoy!
Pavel N. Krivitsky, UNSW Sydney
Mark S. Handcock, University of California, Los Angeles

Copyright 2003-2022
Copyright 2003-2024
2 changes: 1 addition & 1 deletion R/InitErgmm.fixed.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################

#' @importFrom statnet.common ult
Expand Down
2 changes: 1 addition & 1 deletion R/InitErgmm.latent.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################

InitErgmTerm.latent <- nonlatent_error
Expand Down
2 changes: 1 addition & 1 deletion R/InitErgmm.random.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################

#' @templateVar name rsender
Expand Down
2 changes: 1 addition & 1 deletion R/P.alloc.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
## Lets the user call P.free.all from R. Only used for debugging.
P.free.all<-function() invisible(try(.C("P_free_all", PACKAGE="latentnet")))
2 changes: 1 addition & 1 deletion R/bayesmbc.MCMC.C.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
bayesmbc.MCMC.C<-function(G, start, prior, sample.size=NULL, interval=NULL){
## Note that passing NULL as a parameter will cause the corresponding parameter in
Expand Down
2 changes: 1 addition & 1 deletion R/bayesmbc.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
bayesmbc<-function(G,Z,prior,Z.K.ref=NULL,sample.size=2000,interval=10,burnin=500,verbose=FALSE){
start<-mbc.VII.EM(G,Z)
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.MCMC.C.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
### ergmm.MCMC.C: This is a pretty minimal R function that prepares the R data to be
### passed into the C function, calls the C function to estimate the latent space model,
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################

## If the random seed has been specified, save the old seed, to
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
## These functions define defaults passed to ergmm(...).
## They are meant to be used in a manner similar to glm.control(...)
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.draw.utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
ergmm.drawcircle <- function(center,radius,length=50,...)
{
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.families.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
### family-specific functions

Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.geodesicmatrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
ergmm.geodesicmatrix<-function(model){
Ym<-model[["Ym"]]
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.get.model.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
ergmm.get.model <- function(formula,response,family,fam.par,prior){

Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.initvals.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
ergmm.initvals <- function(model,user.start,prior,control){
if(control[["verbose"]]) cat("Generating initial values for MCMC:\n")
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.latent.effects.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
### effect-specific functions

Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.par.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
# Utilities for dealing with MCMC output produced by *.MCMC.C functions.

Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.permutation.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
ergmm.permutation <- function(n)
{
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.probs.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
not.given<-function(name,theta,given){
is.null(given[[name]]) && !is.null(theta[[name]])
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.statseval.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
ergmm.statseval <- function (mcmc.out, model, start, prior, control,Z.ref=NULL,Z.K.ref=NULL){
if(control[["verbose"]]) cat("Post-processing the MCMC output:\n")
Expand Down
2 changes: 1 addition & 1 deletion R/ergmm.tuner.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
nterms.model<-function(model){
(model[["p"]]
Expand Down
2 changes: 1 addition & 1 deletion R/gof.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' Conduct Goodness-of-Fit Diagnostics on a Exponential Family Random Graph
#' Mixed Model Fit
Expand Down
2 changes: 1 addition & 1 deletion R/label.switching.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
klswitch.C <- function(Q.start,sample,Z=NULL,maxit=100,verbose=0)
{
Expand Down
2 changes: 1 addition & 1 deletion R/latent.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
latent <- function(...){
cat("The central function in the 'latentnet' package is 'ergmm'\n")
Expand Down
2 changes: 1 addition & 1 deletion R/latentnet-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################

#' Southern Women Data Set (Davis) as a bipartite ``network'' object
Expand Down
2 changes: 1 addition & 1 deletion R/mcmc.diagnostics.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' Conduct MCMC diagnostics on an ERGMM fit
#'
Expand Down
2 changes: 1 addition & 1 deletion R/merge.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
## A routine to merge replications of ergmm calls with same inputs
## but different random seeds and/or starting values.
Expand Down
2 changes: 1 addition & 1 deletion R/plot.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
plot3d.ergmm<-function(x,...){
plot.ergmm(x,rgl=TRUE,...)
Expand Down
2 changes: 1 addition & 1 deletion R/predict.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' Predicted Dyad Values for an ERGMM.
#'
Expand Down
2 changes: 1 addition & 1 deletion R/print.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' @export
print.ergmm<-function(x,...){
Expand Down
2 changes: 1 addition & 1 deletion R/print.ergmm.model.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' @export
print.ergmm.model<-function(x,...){
Expand Down
2 changes: 1 addition & 1 deletion R/procrustes.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
.procrustes.Z.mean.C<-function(sample,Z.ref,center=FALSE,verbose=0){
n<-dim(Z.ref)[1]
Expand Down
2 changes: 1 addition & 1 deletion R/simulate.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' Draw from the distribution of an Exponential Random Graph Mixed Model
#'
Expand Down
2 changes: 1 addition & 1 deletion R/summary.ergmm.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' ERGMM Fit Summaries
#'
Expand Down
2 changes: 1 addition & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#
# Return TRUE iff object x is a ergmm fit object
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# open source, and has the attribution requirements (GPL Section 7) at
# https://statnet.org/attribution .
#
# Copyright 2003-2022 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
# Create a place for package-wide global variables.
.latentnetEnv <- new.env()
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/ergmTerm-bipartite.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# File man-roxygen/ergmTerm-bipartite.R in package ergm, part of the
# File man-roxygen/ergmTerm-bipartite.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-2023 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' @note This term can only be used with undirected bipartite networks.
4 changes: 2 additions & 2 deletions man-roxygen/ergmTerm-directed.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# File man-roxygen/ergmTerm-directed.R in package ergm, part of the
# File man-roxygen/ergmTerm-directed.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-2023 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' @note This term can only be used with directed networks.
4 changes: 2 additions & 2 deletions man-roxygen/ergmTerm-general.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# File man-roxygen/ergmTerm-general.R in package ergm, part of the
# File man-roxygen/ergmTerm-general.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-2023 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' <% name <- if(startsWith(name, "'")) substr(name, 2, 1000) else name %>
#' @name <%= name %>-ergmTerm
Expand Down
4 changes: 2 additions & 2 deletions man-roxygen/ergmTerm-gw-alpha-to-decay.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# File man-roxygen/ergmTerm-gw-alpha-to-decay.R in package ergm, part of the
# File man-roxygen/ergmTerm-gw-alpha-to-decay.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-2023 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' @note The `decay` parameter was called `alpha` prior to `ergm` 3.7.
4 changes: 2 additions & 2 deletions man-roxygen/ergmTerm-gw-cutoff.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# File man-roxygen/ergmTerm-gw-cutoff.R in package ergm, part of the
# File man-roxygen/ergmTerm-gw-cutoff.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-2023 Statnet Commons
# Copyright 2003-2024 Statnet Commons
################################################################################
#' @param cutoff This optional argument sets the number of underlying <%= underlying %> terms
#' to use in computing the statistics when `fixed=FALSE`, in order to reduce
Expand Down
Loading

0 comments on commit 04733e1

Please sign in to comment.