simDat11: Simulate data for Chapter 11: Comparing two groups of Poisson...

View source: R/dataSimulation.R

simDat11R Documentation

Simulate data for Chapter 11: Comparing two groups of Poisson counts

Description

Generate counts of hares in two areas with different landuse

Usage

simDat11(nSites = 30, alpha = log(2), beta = log(5) - log(2))

Arguments

nSites

Number of sites

alpha

Intercept

beta

Slope for land use

Value

A list of simulated data and parameters.

nSites

Number of sites

alpha

Intercept

beta

Slope for land use

y

Simulated hare counts

Author(s)

Marc Kéry

Examples

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

# Revert to "Poisson model-of-the-mean" 
# (Increase sample size to reduce sampling variability)
str(dat <- simDat11(nSites = 1000, beta = 0)) 


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

Related to simDat11 in ASMbook...