View source: R/dataSimulation.R
simDat62 | R Documentation |
Simulate wingspan measurements in female and male peregrines with equal variance.
simDat62(n1 = 60, n2 = 40, mu1 = 105, mu2 = 77.5, sigma = 2.75)
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 |
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 |
Marc Kéry
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.