inst/devel/driver.R

## Driver script

library(hmmTMB)

# simulate data 
n <- 10000
empty <- data.frame(ID = 1, count = rep(0, n))
true_mod <- HMM$new(file = "inst/devel/true_mod.hmm")
dat <- true_mod$simulate(n)

# fit model 
mod <- HMM$new(file = "inst/devel/mod.hmm")
mod$fit()
mod$par()

Try the hmmTMB package in your browser

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

hmmTMB documentation built on Oct. 25, 2023, 1:07 a.m.