Learn R Programming

ASMbook (version 1.0.2)

simDat124: 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))

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

Arguments

nSites

Number of sites

alpha

Intercept

beta

Slope for land use

Author

Marc Kéry

Examples

Run this code
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

Run the code above in your browser using DataLab