R Under development (unstable) (2024-12-07 r87428 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. > if (file.exists("_options.R")) source("_options.R") > library(panelPomp,quietly=TRUE) > set.seed(3496L) > > g <- panelGompertz(N=5,U=2) > s1 <- simulate(g) > print(obs(s1[[1]])) t name [,1] [,2] [,3] [,4] [,5] Y 1.125092 1.114419 1.215663 1.033457 0.8109009 > if(class(s1)!="panelPomp") stop("a single simulation should be a panelPomp") > > s2 <- simulate(g,nsim=3) > if(length(s2)!=3) stop("if nsim>1, simulation returns a list of length nsim") > > s3 <- simulate(g,specific=2*g@specific) > s4 <- simulate(g,shared=2*g@shared) > s5 <- simulate(g,specific=2*g@specific,shared=2*g@shared) > > try(simulate(g,nsim="inappropriate text argument")) Error : 'nsim' must be a positive integer. > > g2 <- panelPomp(g@unit_objects) > try(simulate(g2)) Error : at least one of shared and specific must be specified. > > > > > proc.time() user system elapsed 0.76 0.18 3.59