Package: goldfish 1.7.0

Alvaro Uzaheta

goldfish: Statistical Network Models for Dynamic Network Data

Tools for fitting statistical network models to dynamic network data. Can be used for fitting both dynamic network actor models ('DyNAMs') and relational event models ('REMs'). Stadtfeld, Hollway, and Block (2017a) <doi:10.1177/0081175017709295>, Stadtfeld, Hollway, and Block (2017b) <doi:10.1177/0081175017733457>, Stadtfeld and Block (2017) <doi:10.15195/v4.a14>, Hoffman et al. (2020) <doi:10.1017/nws.2020.3>.

Authors:James Hollway [aut, dtc], Christoph Stadtfeld [aut, dtc], Marion Hoffman [aut], Alvaro Uzaheta [cre, aut], Mirko Reul [ctb], Timon Elmer [ctb], Kieran Mepham [ctb], Per Block [ctb], Xiaolei Zhang [ctb], Weigutian Ou [ctb], Emily Garvin [ctb], Siwei Zhang [ctb], Mabel Wylie [ctb]

goldfish_1.7.0.tar.gz
goldfish_1.7.0.zip(r-4.7)goldfish_1.7.0.zip(r-4.6)goldfish_1.7.0.zip(r-4.5)
goldfish_1.7.0.tgz(r-4.6-x86_64)goldfish_1.7.0.tgz(r-4.6-arm64)goldfish_1.7.0.tgz(r-4.5-x86_64)goldfish_1.7.0.tgz(r-4.5-arm64)
goldfish_1.7.0.tar.gz(r-4.7-arm64)goldfish_1.7.0.tar.gz(r-4.7-x86_64)goldfish_1.7.0.tar.gz(r-4.6-arm64)goldfish_1.7.0.tar.gz(r-4.6-x86_64)
goldfish_1.7.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
goldfish/json (API)

# Install 'goldfish' in R:
install.packages('goldfish', repos = c('https://stocnet.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/stocnet/goldfish/issues

Pkgdown/docs site:https://stocnet.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • actors - Social evolution of a university dormitory cohort
  • bilatchanges - International bilateral fisheries treaties
  • bilatnet - International bilateral fisheries treaties
  • calls - Social evolution of a university dormitory cohort
  • contigchanges - International bilateral fisheries treaties
  • contignet - International bilateral fisheries treaties
  • friendship - Social evolution of a university dormitory cohort
  • gdpchanges - International bilateral fisheries treaties
  • known.before - RFID Validity dataset
  • participants - RFID Validity dataset
  • regchanges - International bilateral fisheries treaties
  • rfid - RFID Validity dataset
  • sovchanges - International bilateral fisheries treaties
  • states - International bilateral fisheries treaties
  • video - RFID Validity dataset

On CRAN:

Conda:

dynamnetwork-modellingremstatistical-network-analysiscpp

7.71 score 66 stars 65 scripts 199 downloads 39 exports 28 dependencies

Last updated from:a53fa5390f. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK299
linux-devel-x86_64OK300
source / vignettesOK358
linux-release-arm64OK266
linux-release-x86_64OK251
macos-release-arm64OK199
macos-release-x86_64OK452
macos-oldrel-arm64OK166
macos-oldrel-x86_64OK306
windows-develOK262
windows-releaseOK305
windows-oldrelOK191
wasm-releaseOK202

Exports:commonReceivercommonSenderdefineDependentEventsdefineGlobalAttributedefineGroups_interactiondefineNetworkdefineNodesegoAlterIntestimate_dynamestimate_dynamiestimate_remexamine_changepointsexamine_outliersexamineChangepointsexamineOutliersgather_model_dataglancelink_eventslinkEventsmake_datamake_data_goldfishmake_dependent_eventsmake_dependent_events_goldfishmake_global_attributemake_global_attribute_goldfishmake_groups_interactionmake_networkmake_network_goldfishmake_nodesmake_nodes_goldfishmixedCommonReceivermixedCommonSendermixedCyclemixedTransnodeTransset_estimation_optset_preprocessing_opttertiusDifftidy

Dependencies:changepointclicpp11farvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrpillarpkgconfigR6RColorBrewerRcppRcppArmadillorlangS7scalestibbleutf8vctrsviridisLitewithrzoo

DyNAM-i: an example script
Step 0: Load package and data | Step 1: Create groups and interaction events | Step 2: Set up goldfish objects | Step 4: Estimate a model with attribute effects | Step 5: Estimate a model with structural and time effects | Step 6: Extra steps

Last update: 2025-06-23
Started: 2022-08-17

DyNAM: How to start
Step 0: Load package and data | Preamble: Run a quick DyNAM in six lines | Step 1: Create data objects | Step 1a: Make node set(s) and attributes | Step 1b: Make networks | Task | Step 1c: Make dependent events | Step 1d: Make data object | Intermediate step: Visualization | Step 2: Specify and estimate model | Step 2a. Formula | Step 2b and 2c. Preprocessing and Estimation | Rate model | Remark: | Right-censored intervals | Windows effects | REM with goldfish

Last update: 2025-06-23
Started: 2021-09-09

The Coordination Model and Extensions
Step 0: Load package and data | Step 1: Create data objects | Step 1a: Define node set(s) and attributes | Step 1b: Define networks | Step 1c: Define dependent events | Step 1d: Make data object | Intermediate step: Visualisation | Step 2: Specify and estimate model | Extensions...

Last update: 2025-06-23
Started: 2021-09-09

goldfish Effects
Effect arguments | Notation | Node or actor statistics | Structural Effects | Indegree (indeg()) | Outdegree (outdeg()) | Node embeddedness transitivity (node_trans()) | Attribute effects | Ego attribute (ego()) | Alter attribute (alter()) | Structural $+$ Attribute effect | Tertius (tertius()) | Dyadic statistics | Structural effects | Tie (tie()) | Inertia (inertia()) | Tie reciprocation (recip()) | Same value in attribute (same()) | Differences in attribute (diff()) | Similarity in attribute (sim()) | Ego Alter interaction (ego_alter_interaction()) | Tertius difference (tertius_diff()) | Closure effect statistics (Dyadic effects) | Transitivity (trans()) | Cycle (cycle()) | Common sender closure (common_sender()) | Common receiver closure (common_receiver()) | Four cycle (four()) | Mixed Transitivity (mixed_trans()) | Mixed Cycle (mixed_cycle()) | Mixed common sender closure (mixed_common_sender()) | Mixed common receiver closure (mixed_common_receiver())

Last update: 2025-06-23
Started: 2022-07-05

Readme and manuals

Help Manual

Help pageTopics
goldfish packagegoldfish-package goldfish
Estimate a modelestimate estimate_dynam estimate_dynami estimate_rem
Diagnostic functionsexamine examine_changepoints examine_outliers
International bilateral fisheries treaties (1960-1970)bilatchanges bilatnet contigchanges contignet Fisheries_Treaties_6070 gdpchanges regchanges sovchanges states
Gather model data from a formulagather_model_data
Link dynamic events to a nodeset or a networklink_events link_events.default link_events.network.goldfish link_events.nodes.goldfish
Extract log-likelihood from a fitted model objectlogLik.result.goldfish
Create a data object for goldfish modelsmake_data make_data_goldfish
Define dependent events for a modelmake_dependent_events make_dependent_events_goldfish
Define a global time-varying attributemake_global_attribute make_global_attribute_goldfish
To define the second mode of a DyNAM-i modelmake_groups_interaction
Defining a network with dynamic eventsmake_network make_network_goldfish
Defining a node set with (dynamic) node attributes.make_nodes make_nodes_goldfish
Methods for 'goldfish' objects.print-method print.data.goldfish print.dependent.goldfish print.estimation_opt.goldfish print.network.goldfish print.nodes.goldfish print.preprocessed.goldfish print.preprocessing_opt.goldfish print.result.goldfish print.summary.result.goldfish
RFID Validity datasetknown.before participants rfid RFID_Validity_Study video
Control Parameters for Estimationset_estimation_opt
Control Parameters for Preprocessingset_preprocessing_opt
Social evolution of a university dormitory cohortactors calls friendship Social_Evolution
Methods to update a nodes or network objectas.data.frame.nodes.goldfish as.matrix.network.goldfish update-method