View source: R/simulation_functions.R
This function simulates interaction data based on a group scaning methodology. For a given number of sampling periods, the simulation will generate interactions based on a user defined network, and individual interaction probabilities.
1 2 3 |
nodes |
Number of individuals within a simulated group. |
sampling.periods |
The number of times the simulated group is observed. |
sampling.periods.per.day |
The number of sampling periods per day. |
true.net |
(Optional) A network describing who can interact with whom. |
A |
(Optional) A vector specifying the average probability interaction for each individual. Should be the same length as the number of nodes. Default: runif(node,0,1) |
B |
(Optional) A matrix (node x node) specifying the inter-dependence of individual interaction probabilities. Default: matrix of zeros |
C |
(Optional) A matrix (node X covariates) specifying the effect of covariate values on each individual's interaction probability. Default: matrix of zeros |
D |
(Optional) A matrix (node x node) specifying the inter-dependence of noise around individual variations probabilities. Default: matrix of zeros |
E |
(Optional) A value for the standard deviation (noise) around individual's mean interaction probability. Default: 0.1 |
covariates |
A matrix (sampling period x covariates) with covariate values for each sampling period. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.