datasets: example data sets for socialindices

datasetsR Documentation

example data sets for socialindices

Description

Fictious examples of data sets to calculate social bonds

Usage

dataset1

Format

  • dataseq data.frame with interaction data

  • ot data.frame with observation time of individual protocols

  • presence presence table of focal individuals

  • presence2 presence table of nonfocal individuals

  • prefdyads dyads with higher rate/longer duration of interactions

  • focals character, focal individuals

  • nonfocs character, nonfocal individuals

Details

The data sets included have been generated with the datagen function. See examples for the code...

Examples

## Not run: 
dataset1 <- datagen(no=2000, ni=10, nadd=20, friendprop=0.2, presence=c(0.5, 0.4))
dataset2 <- datagen(no=2000, ni=30, nadd=0,  friendprop=0.2, presence=c(0.5, 0.4))
dataset3 <- datagen(no=200,  ni=3,  nadd=3,  friendprop=0.2, presence=c(0.5, 0.4))
dataset4 <- datagen(1000, ni=14)
domseq4 <- domgen(dataset4, 500, drawprop=0)

## End(Not run)

gobbios/socialindices documentation built on Feb. 14, 2023, 3:56 p.m.