simDat62 {ASMbook} | R Documentation |
Simulate data for Chapter 6.2: Two groups with equal variance
Description
Simulate wingspan measurements in female and male peregrines with equal variance.
Usage
simDat62(n1 = 60, n2 = 40, mu1 = 105, mu2 = 77.5, sigma = 2.75)
Arguments
n1 |
The sample size of females |
n2 |
The sample size of males |
mu1 |
The population mean males |
mu2 |
The population mean females |
sigma |
The standard deviation for both groups |
Value
A list of simulated data and parameters.
n1 |
Female sample size |
n2 |
Male sample size |
mu1 |
Female mean |
mu2 |
Male mean |
beta |
Difference in wingspan mean between sexes |
sigma |
Standard deviation for both groups |
x |
Indicator variable for sex, 1 = male |
y |
Simulated wingspan data |
Author(s)
Marc Kéry
Examples
str(dat <- simDat62()) # Implicit default arguments
str(dat <- simDat62(n1 = 1000, n2 = 10000)) # Much larger sample sizes
# Revert to "model-of-the-mean" (with larger sample size)
str(dat <- simDat62(n1 = 10000, n2 = 10000, mu1 = 105, mu2 = 105))
[Package ASMbook version 1.0.2 Index]