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.49881111
#> 2   0.51779605
#> 3   0.16038297
#> 4  -0.74298552
#> 5  -0.22685365
#> 6   0.88245251
#> 7   1.47748293
#> 8   0.91725564
#> 9   0.02890771
#> 10 -0.80805360
simulate(f(rnorm(10), model="rw1", noise = noise_normal()))
#>          sim_1
#> 1  -0.03660141
#> 2   0.88049648
#> 3   0.27173938
#> 4   0.73422522
#> 5   0.05873090
#> 6   0.37020003
#> 7   0.30115525
#> 8  -0.05284018
#> 9   0.35935335
#> 10  0.98024945