R Under development (unstable) (2024-08-19 r87028 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > library(spatPomp) Loading required package: pomp > set.seed(3) > > l <- lorenz(U=5,N=2) > > try(lorenz(U=2,N=2)) Error in lorenz(U = 2, N = 2) : Please use U >= 4 > > l_pf <- pfilter(l,Np=10) > paste("lorenz pfilter loglik: ", round(logLik(l_pf),10)) [1] "lorenz pfilter loglik: -14.6404138351" > > ## A call to igirf using the moment-based guide function can test compiled code for eunit_measure, munit_measure, vunit_measure, dunit_measure, runit_measure, rprocess, skeleton, rinit and partrans. > > l_igirf <- igirf(l, + Ngirf = 2, + rw.sd = rw_sd(F=0.02, tau=0.02,X1_0=ivp(0),X2_0=ivp(0)), + cooling.type = "hyperbolic", + cooling.fraction.50 = 0.5, + Np=5, + Ninter = 2, + lookahead = 1, + Nguide = 5, + kind = 'bootstrap', + verbose = FALSE + ) > paste("lorenz igirf bootstrap hyperbolic loglik:", round(logLik(l_igirf),10)) [1] "lorenz igirf bootstrap hyperbolic loglik: -39.6089405974" > > > > > proc.time() user system elapsed 1.26 0.26 5.14