Description Usage Arguments Value Examples
Fit a 4M model
1 2 3 4 5 6 7 |
object |
An object of class |
model |
An object of class |
max.tries |
How many times shoud the fitting process be tried before stopping? Defaults to 10. |
DLL |
Which DLL should be loaded? Should only be changed if the user modifies the C++ TMB template. |
stationary.tolerance |
Number of decimal places that any entry of the stationary distribution is allowed to be zero without restarting the fitting procedure. |
... |
Optional way to define a model without first creating an object. Also used to pass arguments to internal functions. |
Returns an object of class Model4M
containing estimated model parameters, residuals, and Viterbi-decoded state estimates.
1 2 3 4 5 6 7 | sealData<- data4M(greyseal)
sealData<- interpolate(sealData,Time.Step = 1)
seal4M2<- fit(sealData)
seal4M3<- fit(sealData,N.States = 3)
HMM3<- setModel4M(Use.HMM = T,N.States = 3)
sealHMM3<- fit(sealData,HMM3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.