# Coefficient of Sociality

### Description

The function `Cs`

computes the coefficient of sociality between two moving
objects following the methods outlined by Kenward et al. (1993). It also uses a
signed Wilcoxon-rank test to test for significance.

### Usage

1 | ```
Cs(traj1, traj2, tc = 0)
``` |

### Arguments

`traj1` |
an object of the class |

`traj2` |
same as |

`tc` |
time threshold for determining simultaneous fixes – see function: |

### Details

This function can be used to calculate the Kenward et al. (1993) coefficient of sociality (Cs) between two animals. The Cs statistic tests the observed mean distance between simultaneous fixes against that expected by the overall distribution of distances between all fixes.

*Cs=(De-Do)/(De+Do)*

Where *Do* is the mean observed distance between simultaneous fixes, and *De*
is the mean expected distance between all fixes. Kenward et al. (1993) propose Cs
as a useful metric for exploring attraction or avoidance behaviour.
Values for Cs closer to 1 indicate
attraction, while values for Cs closer to -1 indicate avoidance. Values of Cs
near 0 indicate that the two animals' movements have no influence on one another.

Further, the difference between the observed and expected distances are compared
using a paired signed-rank test (both one-sided tests, indicative of attraction
or avoidance). See the function `GetSimultaneous`

for details on how
simultaneous fixes are determined from two trajectories.

### Value

This function returns a list of objects representing the calculated values from the
Cs statistic and associated *p*-values from the signed rank test.

Do – The mean distance of simultaneous fixes.

De – The mean expected distance, from all fixes.

Cs – The coefficient of sociality, see

**Details**.p.Attract – One sided

*p*-value from signed rank test, testing for attraction.p.Avoid – One sided

*p*-value from signed rank test, testing for avoidance.

### References

Kenward, R.E., Marcstrom, V. and Karlbom, M. (1993) Post-nestling behaviour in
goshawks, *Accipiter gentilis: II*. Sex differences in sociality and nest-switching.
*Animal Behaviour*. **46**, 371–378.

### See Also

GetSimultaneous

### Examples

1 2 3 4 5 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.