| extract.sim.morph | R Documentation |
Extracts results from each model fitted in a simulation study
conducted using sim.morph().
extract.sim.morph(sim.res, FUN = summary, n.cores = 1)
sim.res |
An object of class |
FUN |
A function to apply to each model fit. Defaults to
|
n.cores |
Integer. The number of cores for parallel processing. |
An array containing the results of applying FUN to each model fit.
## Running a small simulation study.
sim.fits <- sim.morph(n.sims = 5,
n.animals = 10,
n.photos = 3,
mus = c(315, 150, 100),
sigmas = c(25, 15, 10),
rhos = c(0.85, 0.80, 0.75),
psis = c(10, 6, 4),
phis = c(0.5, 0.4, 0.3),
method = "REML",
progressbar = FALSE,
n.cores = 1)
## Extracting p-values from tests for isometry from each model
## fit.
iso.p <- function(x) summary(x, type = "isometric-pca")[, 3]
extract.sim.morph(sim.fits, FUN = iso.p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.