R Under development (unstable) (2025-05-10 r88193 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > # > # test getpars and setpars > # > > require(depmixS4) Loading required package: depmixS4 Loading required package: nnet Loading required package: MASS Loading required package: Rsolnp Loading required package: nlme > > data(speed) > > trstart=c(0.896,0.104,0.084,0.916) > trstart=c(trstart[1:2],0,0.01,trstart[3:4],0,0.01) > instart=c(0,1) > resp <- c(5.52,0.202,0.472,0.528,6.39,0.24,0.098,0.902) > > mod <- depmix(list(rt~1,corr~1),data=speed,family=list(gaussian(),multinomial()),transition=~Pacc,trstart=trstart,instart=instart,respst=resp,nst=2,ntimes=c(168,134,137)) > > mod1 <- setpars(mod,getpars(mod)) > > cat("Test getpars and setpars: ", all.equal(getpars(mod),getpars(mod1)), "(getpars and setpars) \n") Test getpars and setpars: TRUE (getpars and setpars) > > > > proc.time() user system elapsed 0.70 0.18 0.87