simDat124 {ASMbook}R Documentation

Simulate data for Chapter 12.4: Counts with offsets

Description

Generate counts of hares in two landuse types when study area size A varies and is used as an offset

Usage

simDat124(nSites = 50, 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

A

Site areas

C

Simulated hare counts

Author(s)

Marc Kéry

Examples

str(dat <- simDat124())      # Implicit default arguments
str(dat <- simDat124(nSites = 1000, beta = 0)) # "Model-of-the-mean" without effect of landuse
str(dat <- simDat124(nSites = 100, alpha = log(2), beta = -2)) # Grassland better than arable


[Package ASMbook version 1.0.2 Index]