simDat4: Simulate data for Chapter 4: Model of the mean

View source: R/dataSimulation.R

simDat4R Documentation

Simulate data for Chapter 4: Model of the mean

Description

Simulate body mass measurements for n peregrine falcons from a normal distribution with population mean = 'mean' and population sd = 'sd'

Usage

simDat4(n = 10, mean = 600, sd = 30)

Arguments

n

The sample size

mean

Population mean

sd

Population standard deviation

Value

A list of simulated data and parameters.

n

Sample size

mean

Population mean

sd

Population SD

y

Simulated peregrine mass measurements

Author(s)

Marc Kéry

Examples

str(dat <- simDat4())          # Implicit default arguments
str(dat <- simDat4(n = 10^6))  # More than the world population of peregrines
str(dat <- simDat4(n = 10, mean = 900, sd = 40))  # Simulate 10 female peregrines


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

Related to simDat4 in ASMbook...