print.ctsmTMB.fit | R Documentation |
Basic print of objects ctsmTMB fit objects
## S3 method for class 'ctsmTMB.fit'
print(x, ...)
x |
a ctsmTMB fit object |
... |
additional arguments |
Print of ctsmTMB fit object
library(ctsmTMB)
model <- ctsmTMB$new()
# create model
model$addSystem(dx ~ theta * (mu+u-x) * dt + sigma_x*dw)
model$addObs(y ~ x)
model$setVariance(y ~ sigma_y^2)
model$addInput(u)
model$setParameter(
theta = c(initial = 1, lower=1e-5, upper=50),
mu = c(initial=1.5, lower=0, upper=5),
sigma_x = c(initial=1, lower=1e-10, upper=30),
sigma_y = 1e-2
)
model$setInitialState(list(1,1e-1))
# fit model to data
fit <- model$estimate(Ornstein)
# print fit
print(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.