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.50916197
#> 2   0.16307101
#> 3   0.06605404
#> 4   0.64090571
#> 5   0.72551110
#> 6   1.02493219
#> 7  -0.73774315
#> 8  -0.54191731
#> 9  -1.18189118
#> 10  0.26075927
simulate(f(rnorm(10), model="rw1", noise = noise_normal()))
#>          sim_1
#> 1  -0.05894592
#> 2   0.47202667
#> 3   1.51033066
#> 4   0.86523384
#> 5   1.57074538
#> 6   0.47149362
#> 7   1.75872724
#> 8   0.50334178
#> 9   0.13273917
#> 10  1.54405788