Description Usage Arguments Value Examples
Simulate data from an object of class Model4M
.
1 2 3 4 | ## S4 method for signature 'Model4M'
simulate(object, nsim = 1, seed = NULL,
refit = T, keep.locations = T, keep.data = T, keep.residuals = T,
Use.HMM = useHMM(object), Set.Model.4M = SetModel4M(object), ...)
|
object |
An object of class |
nsim |
How many simulations should there be? |
seed |
Sets the RNG seed. If NULL, does not alter the current RNG settings. |
refit |
Should a model be refit to each set of simulated data? |
keep.locations |
Should the simulated locations be kept? |
keep.data |
Should the simulated movement data be kept? |
keep.residuals |
If |
Use.HMM |
If |
Set.Model.4M |
If |
... |
Used to pass arguments to internal functions. |
Returns an object of class Simulate4M
containing simulations and/or results of refitting the simulations.
1 2 3 4 | sealData<- data4M(greyseal)
sealData<- interpolate(sealData,Time.Step = 1)
seal4M2<- fit(sealData)
sim4M2<- simulate(seal4M2,nsim = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.