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.8404232
#> 2   0.5380428
#> 3  -0.7125731
#> 4  -0.8747234
#> 5  -1.6778068
#> 6  -1.4836476
#> 7  -1.9511966
#> 8  -0.5636414
#> 9   0.5034365
#> 10 -0.8786853
simulate(f(rnorm(10), model="rw1", noise = noise_normal()))
#>          sim_1
#> 1   0.07904083
#> 2  -2.48081586
#> 3   0.18414093
#> 4  -2.53826292
#> 5  -0.48171319
#> 6  -3.16806077
#> 7  -1.91349832
#> 8  -0.03288124
#> 9  -0.91890605
#> 10 -1.22020284