Simulate latent process with noise

# S3 method for class 'ngme_model'
simulate(object, nsim = 1, seed = NULL, ...)

Arguments

object

ngme model specified by f() function

nsim

number of simulations

seed

seed

...

ignored

Value

a realization of latent model

Examples

simulate(f(1:10, model="ar1", rho = 0.4, noise = noise_nig()))
#>          sim_1
#> 1  -0.11008645
#> 2  -0.48670487
#> 3  -0.49731069
#> 4   2.34485544
#> 5   0.59561627
#> 6   0.09841691
#> 7   0.17221633
#> 8  -0.50478561
#> 9  -1.04419636
#> 10 -0.62569925
simulate(f(rnorm(10), model="rw1", noise = noise_normal()))
#>          sim_1
#> 1  -0.36477277
#> 2  -0.62456491
#> 3  -2.02891988
#> 4  -1.30216129
#> 5  -1.57291215
#> 6  -1.15419119
#> 7  -0.01099001
#> 8  -1.22300304
#> 9  -0.53814771
#> 10 -1.73546901