sim.events.data: Simulate some observation data

Description Usage Arguments

View source: R/simulation_functions.R

Description

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.

Usage

1
2
3
sim.events.data(nodes, sampling.periods, sampling.periods.per.day = 1,
  true.net = NULL, A = NULL, B = NULL, C = NULL, D = NULL, E = NULL,
  covariates = NULL)

Arguments

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.


tbonne/netTS documentation built on July 26, 2021, 2:27 a.m.