CSI | R Documentation |
CSI (individual CSI)
CSI( b.source, from = NULL, to = NULL, behaviours = NULL, ot.source = NULL, ot.type = "table", duration.NA.treatm = "omit" )
b.source |
data frame with behavioural data |
from |
character or date in format YYYY-MM-DD, by default the earliest and latest date in |
to |
character or date in format YYYY-MM-DD, by default the earliest and latest date in |
behaviours |
character string with codes of behaviours to be considered, by default all behaviours that occur in the data are considered. Can also be a named list if merging of different codes into broader categories is desired (see details). |
ot.source |
data frame with observation time data |
ot.type |
character: |
duration.NA.treatm |
by default |
Typically, behaviours to be considered are supplied in the form behaviours=c("groom", "approach")
. If you wish to merge behaviours into broader categories, supply a named list, e.g. list(groom=c("grm.received", "grm.given"), greet=c("greet", "mount", "grunt"))
. In such a case, behaviours in a given category are summed first to calculate the rates with which the behaviour categories occur.
a data.frame with CSI and standardized CSI. For the latter, the rates of behaviours are z-transformed before they are summed and divided by the number of behaviours.
Sapolsky, R. M., Alberts, S. C., & Altmann, J. (1997). Hypercortisolism associated with social subordinanceor social isolation among wild baboons.Archives of General Psychiatry,54(12), 1137–1143. https://doi.org/10.1001/archpsyc.1997.01830240097014
## Not run: data(dataset3) CSI(dataset3$dataseq) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.