simDat15: Simulate data for Chapter 15: Comparing two groups of...

View source: R/dataSimulation.R

simDat15R Documentation

Simulate data for Chapter 15: Comparing two groups of binomial counts

Description

Generate presence/absence data for two gentian species (Bernoulli variant)

Usage

simDat15(N = 50, theta.cr = 12/50, theta.ch = 38/50)

Arguments

N

Number of sites

theta.cr

Probability of presence for cross-leaved gentian

theta.ch

Probability of presence for chiltern gentian

Value

A list of simulated data and parameters.

N

Number of sites

theta.cr

Probability for cross-leaved gentian

theta.ch

Probability for chiltern gentian

y

Simulated presence/absence data

species.long

Species indicator (longform), 1 = chiltern

C

Aggregated presence/absence data

species

Species indicator for aggregated data

chiltern

Effect of chiltern (difference in species intercepts)

Author(s)

Marc Kéry

Examples

str(dat <- simDat15())      # Implicit default arguments

# Revert to "Binomial model-of-the-mean"
# (Increase sample size to reduce sampling variability)
str(dat <- simDat15(N = 100, theta.cr = 40/100, theta.ch = 40/100)) 


ASMbook documentation built on Sept. 11, 2024, 5:38 p.m.

Related to simDat15 in ASMbook...