test_NonacsB: Test the significance of the Nonacs' binomial skew index

Description Usage Arguments Value See Also Examples

View source: R/Nonacs.R

Description

This functions compare the observed values of the Nonacs' binomial skew index to expectation under the null hypothesis of a contribution to the mating or breeding pool proportional to the time spent in the group.

Usage

1
test_NonacsB(benef, time, nsim = 100000L, keep_H0 = FALSE, seed = 1L)

Arguments

benef

The vector of benefits (i.e. mating or reproductive success).

time

The vector of time-in (i.e. the time each individual spent in the group).

nsim

The number of simulation to run.

keep_H0

A boolean indicating whether to export the values of the Nonacs' binomial skew index simulated under the null hypothesis.

seed

The seed for the random number generator.

Value

A list with the observed Nonacs' binomial skew index value, its corresponding p-value and (optionally) the values computed on data simulated under the null hypothesis.

See Also

compute_NonacsB

Examples

1
test_NonacsB(benef = males$Rep_succ, time = males$Time)

courtiol/matingRhinos documentation built on Nov. 22, 2019, 11:10 p.m.