simDat11 {ASMbook}R 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)) 


[Package ASMbook version 1.0.2 Index]