R/simulate.R

#' Simulations of a phylogenetic trait model
#'
#' `simulate` generates random deviates from a fitted model.
#' 
#' @name simulate
#' @docType methods
#' @rdname simulate
#' @family methods for ouch trees
#' @importFrom stats simulate
#'
#' @return
#' `simulate` returns a list of data-frames, each comparable to the original data.
#' @param object fitted model object to simulate.
#' @param nsim integer; number of independent simulations.
#' @param seed integer; if non-`NULL`, the RNG will be initialized with this seed for the simulations.
#' The RNG will be reset to its pre-existing state when `simulate` returns.
#' @param ... additional arguments, ignored.
NULL

Try the ouch package in your browser

Any scripts or data that you put into this service are public.

ouch documentation built on April 25, 2023, 9:10 a.m.