CorrelatedDataSimulationFunction: This function simulates a population of deer males where...

Description Usage Arguments Value Examples

View source: R/CorrelatedDataSimulationFunction.R

Description

This function simulates a population of deer males where reproductive success is correlated with body size

Usage

1
2
3
4
5
6
CorrelatedDataSimulationFunction(
  N = 100,
  CorrelationCoefficient = 0.83,
  MaleMeanBodyWeight = 125,
  MaleReproductiveSuccess = 3
)

Arguments

N

the number of individuals in the simulated population

CorrelationCoefficient

the correlation value of the two variables

MaleMeanBodyWeight

mean body weight of males in the population

MaleReproductiveSuccess

mean male reproductice success

Value

a dataframe

Examples

1
2
CorrelatedDataSimulationFunction(N=5,CorrelationCoefficient= 0.45,
MaleMeanBodyWeight = 125,MaleReproductiveSuccess = 3)

DenaJGibbon/behaviouR documentation built on Aug. 27, 2020, 10:57 p.m.