no slot of name "control" for this object of class "lavModel"Error in short.summary(object) : no slot of name "control" for this object of class "lavModel"
@ SampleStats:Error in FUN(X[[i]], ...) :
no slot of name "CAT" for this object of class "lavSampleStats"str(fit)
Formal class 'lavaan' [package "lavaan"] with 16 slots
..@ call : language lavaan::lavaan(model = epm.sem.mod.d, data = epm.tiny.dat, estimator = "MLM", model.type = "sem", int.ov.free = TRUE, int.lv.free = FALSE, auto.fix.first = TRUE, ...
..@ timing :List of 10
.. ..$ InitOptions: Named num 0.442
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ InitData : Named num 0.335
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ ParTable : Named num 0.007
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ Sample : Named num 0.621
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ Start : Named num 0.003
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ Model : Named num 0.007
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ Estimate : Named num 0.218
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ VCOV : Named num 1.62
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ TEST : Named num 8.49
.. .. ..- attr(*, "names")= chr "elapsed"
.. ..$ total : Named num 11.8
.. .. ..- attr(*, "names")= chr "elapsed"
..@ Options :List of 59
.. ..$ model.type : chr "sem"
.. ..$ mimic : chr "lavaan"
.. ..$ meanstructure : logi TRUE
.. ..$ int.ov.free : logi TRUE
.. ..$ int.lv.free : logi FALSE
.. ..$ conditional.x : logi FALSE
.. ..$ fixed.x : logi FALSE
.. ..$ orthogonal : logi FALSE
.. ..$ std.lv : logi FALSE
.. ..$ parameterization : chr "delta"
.. ..$ auto.fix.first : logi TRUE
.. ..$ auto.fix.single : logi TRUE
.. ..$ auto.var : logi TRUE
.. ..$ auto.cov.lv.x : logi TRUE
.. ..$ auto.cov.y : logi TRUE
.. ..$ auto.th : logi TRUE
.. ..$ auto.delta : logi TRUE
.. ..$ std.ov : logi FALSE
.. ..$ missing : chr "listwise"
.. ..$ sample.cov.rescale : logi TRUE
.. ..$ ridge : num 1e-05
.. ..$ group.label : NULL
.. ..$ group.equal : chr(0)
.. ..$ group.partial : chr(0)
.. ..$ group.w.free : logi FALSE
.. ..$ cluster : NULL
.. ..$ level.label : NULL
.. ..$ estimator : chr "ML"
.. ..$ likelihood : chr "normal"
.. ..$ link : chr "default"
.. ..$ representation : chr "LISREL"
.. ..$ do.fit : logi TRUE
.. ..$ information : chr "expected"
.. ..$ h1.information : chr "structured"
.. ..$ se : chr "robust.sem"
.. ..$ test : chr "satorra.bentler"
.. ..$ bootstrap : int 1000
.. ..$ observed.information : chr "hessian"
.. ..$ control : list()
.. ..$ optim.method : chr "nlminb"
.. ..$ optim.method.cor : chr "nlminb"
.. ..$ optim.force.converged : logi FALSE
.. ..$ optim.gradient : chr "analytic"
.. ..$ optim.init_nelder_mead: logi FALSE
.. ..$ integration.ngh : int 21
.. ..$ parallel : chr "no"
.. ..$ ncpus : int 1
.. ..$ cl : NULL
.. ..$ iseed : NULL
.. ..$ zero.add : num [1:2] 0.5 0
.. ..$ zero.keep.margins : logi TRUE
.. ..$ zero.cell.warn : logi TRUE
.. ..$ start : chr "default"
.. ..$ check : chr [1:2] "start" "post"
.. ..$ verbose : logi FALSE
.. ..$ warn : logi TRUE
.. ..$ debug : logi FALSE
.. ..$ categorical : logi FALSE
.. ..$ partrace : logi FALSE
..@ ParTable :List of 15
.. ..$ id : int [1:189] 1 2 3 4 5 6 7 8 9 10 ...
.. ..$ lhs : chr [1:189] "TR" "TR" "TR" "TR" ...
.. ..$ op : chr [1:189] "=~" "=~" "=~" "=~" ...
.. ..$ rhs : chr [1:189] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. ..$ user : int [1:189] 1 1 1 1 1 1 1 1 1 1 ...
.. ..$ block : int [1:189] 1 1 1 1 1 1 1 1 1 1 ...
.. ..$ group : int [1:189] 1 1 1 1 1 1 1 1 1 1 ...
.. ..$ free : int [1:189] 0 1 2 3 4 5 0 6 7 8 ...
.. ..$ ustart: num [1:189] 1 NA NA NA NA NA 1 NA NA NA ...
.. ..$ exo : int [1:189] 0 0 0 0 0 0 0 0 0 0 ...
.. ..$ label : chr [1:189] "" "" "" "" ...
.. ..$ plabel: chr [1:189] ".p1." ".p2." ".p3." ".p4." ...
.. ..$ start : num [1:189] 1 0.761 0.718 0.872 0.748 ...
.. ..$ est : num [1:189] 1 0.789 0.778 0.867 0.725 ...
.. ..$ se : num [1:189] 0 0.0885 0.0775 0.0826 0.1004 ...
..@ pta :List of 8
.. ..$ vnames :List of 22
.. .. ..$ ov :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..$ ov.x :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ ov.nox :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..$ ov.model :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..$ ov.y :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ ov.num :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..$ ov.ord :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ ov.ind :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..$ ov.orphan :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ ov.interaction:List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ th :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ th.mean :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..$ lv :List of 1
.. .. .. ..$ : chr [1:8] "TR" "IPVC" "ANGR" "NCOG" ...
.. .. ..$ lv.regular :List of 1
.. .. .. ..$ : chr [1:8] "TR" "IPVC" "ANGR" "NCOG" ...
.. .. ..$ lv.formative :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ lv.x :List of 1
.. .. .. ..$ : chr "TR"
.. .. ..$ lv.y :List of 1
.. .. .. ..$ : chr [1:4] "CWBI" "CWBO" "OCBI" "OCBO"
.. .. ..$ lv.nox :List of 1
.. .. .. ..$ : chr [1:7] "IPVC" "ANGR" "NCOG" "CWBI" ...
.. .. ..$ lv.nonnormal :List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ lv.interaction:List of 1
.. .. .. ..$ : chr(0)
.. .. ..$ eqs.y :List of 1
.. .. .. ..$ : chr [1:7] "IPVC" "ANGR" "NCOG" "OCBI" ...
.. .. ..$ eqs.x :List of 1
.. .. .. ..$ : chr [1:4] "TR" "IPVC" "NCOG" "ANGR"
.. ..$ vidx :List of 22
.. .. ..$ ov :List of 1
.. .. .. ..$ : int [1:49] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..$ ov.x :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ ov.nox :List of 1
.. .. .. ..$ : int [1:49] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..$ ov.model :List of 1
.. .. .. ..$ : int [1:49] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..$ ov.y :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ ov.num :List of 1
.. .. .. ..$ : int [1:49] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..$ ov.ord :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ ov.ind :List of 1
.. .. .. ..$ : int [1:49] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..$ ov.orphan :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ ov.interaction:List of 1
.. .. .. ..$ : int(0)
.. .. ..$ th :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ th.mean :List of 1
.. .. .. ..$ : int [1:49] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..$ lv :List of 1
.. .. .. ..$ : int [1:8] 1 2 3 4 5 6 7 8
.. .. ..$ lv.regular :List of 1
.. .. .. ..$ : int [1:8] 1 2 3 4 5 6 7 8
.. .. ..$ lv.formative :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ lv.x :List of 1
.. .. .. ..$ : int 1
.. .. ..$ lv.y :List of 1
.. .. .. ..$ : int [1:4] 5 6 7 8
.. .. ..$ lv.nox :List of 1
.. .. .. ..$ : int [1:7] 2 3 4 5 6 7 8
.. .. ..$ lv.nonnormal :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ lv.interaction:List of 1
.. .. .. ..$ : int(0)
.. .. ..$ eqs.y :List of 1
.. .. .. ..$ : int(0)
.. .. ..$ eqs.x :List of 1
.. .. .. ..$ : int(0)
.. ..$ nblocks : int 1
.. ..$ ngroups : int 1
.. ..$ nlevels : int 1
.. ..$ nvar :List of 1
.. .. ..$ : int 49
.. ..$ nfac :List of 1
.. .. ..$ : int 8
.. ..$ nfac.nonnormal:List of 1
.. .. ..$ : int 0
..@ Data :Formal class 'lavData' [package "lavaan"] with 16 slots
.. .. ..@ data.type : chr "full"
.. .. ..@ ngroups : int 1
.. .. ..@ group : chr(0)
.. .. ..@ group.label: chr(0)
.. .. ..@ std.ov : logi FALSE
.. .. ..@ nobs :List of 1
.. .. .. ..$ : int 231
.. .. ..@ norig :List of 1
.. .. .. ..$ : int 231
.. .. ..@ ov.names :List of 1
.. .. .. ..$ : chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. ..@ ov.names.x :List of 1
.. .. .. ..$ : chr(0)
.. .. ..@ ov :List of 10
.. .. .. ..$ name: chr [1:49] "TReact1" "TReact6" "TReact9" "TReact10" ...
.. .. .. ..$ idx : int [1:49] 43 44 45 46 47 48 1 2 3 4 ...
.. .. .. ..$ nobs: int [1:49] 231 231 231 231 231 231 231 231 231 231 ...
.. .. .. ..$ type: chr [1:49] "numeric" "numeric" "numeric" "numeric" ...
.. .. .. ..$ exo : int [1:49] 0 0 0 0 0 0 0 0 0 0 ...
.. .. .. ..$ user: int [1:49] 0 0 0 0 0 0 0 0 0 0 ...
.. .. .. ..$ mean: num [1:49] 2.52 3.13 2.13 2.75 2.77 ...
.. .. .. ..$ var : num [1:49] 1.312 1.293 0.896 1.058 1.204 ...
.. .. .. ..$ nlev: int [1:49] 0 0 0 0 0 0 0 0 0 0 ...
.. .. .. ..$ lnam: chr [1:49] "" "" "" "" ...
.. .. ..@ case.idx :List of 1
.. .. .. ..$ : int [1:231] 1 2 3 4 5 6 7 8 9 10 ...
.. .. ..@ missing : chr "listwise"
.. .. ..@ Mp :List of 1
.. .. .. ..$ : NULL
.. .. ..@ Rp :List of 1
.. .. .. ..$ : NULL
.. .. ..@ eXo :List of 1
.. .. .. ..$ : NULL
.. .. ..@ X :List of 1
.. .. .. ..$ : num [1:231, 1:49] 4 2 1 4 4 1 1 4 2 4 ...
..@ SampleStats:Error in FUN(X[[i]], ...) :
no slot of name "CAT" for this object of class "lavSampleStats"
Server version info:
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 2.3
year 2015
month 12
day 10
svn rev 69752
language R
version.string R version 3.2.3 (2015-12-10)
nickname Wooden Christmas-Tree
Local machine version info:
platform x86_64-apple-darwin15.6.0
arch x86_64
os darwin15.6.0
system x86_64, darwin15.6.0
status
major 3
minor 4.1
year 2017
month 06
day 30
svn rev 72865
language R
version.string R version 3.4.1 (2017-06-30)
nickname Single Candle
I would now like to do a series of bootstraps using these results, but I want to perform them on my server so I don't consume resources on my local machine.
When attempting to do so, I keep running into the same error below:no slot of name "control" for this object of class "lavModel"
I've attempted this a few different ways but the general process is this:
- Fit lavaan model on local machine
- lavaan version 0.5.23.1097
- Save and export fit object as either .rds or .RData (error happens for both)
- Upload .rds or .Rdata file to server
- Log into server and spin up R
- Change working directory to .rds or .Rdata location
- Load saved fit object using either readRDS() or load() functions (same error for both)
- fit <- readRDS("file-loc.rds")
- fit <- load("file-loc.Rdata")
- After the actual file loads successfully into the R environment, load lavaan
- Version 0.5.22
I would now like to do a series of bootstraps using these results, but I want to perform them on my server so I don't consume resources on my local machine.Why don't you fit the model on the server instead of saving the fit object from your local machine? Fitting the model is not the time-consuming part, it is the bootstrapping that takes up time. So start the process from scratch on the server to avoid issues like this.
When attempting to do so, I keep running into the same error below:no slot of name "control" for this object of class "lavModel"Is this an error, or is it just a warning? This is probably a version issue. You are using 0.5-23, but your server is using 0.5-22. lavaan has had some internal structural changes, even between these versions.
I've attempted this a few different ways but the general process is this:
- Fit lavaan model on local machine
- lavaan version 0.5.23.1097
- Save and export fit object as either .rds or .RData (error happens for both)
- Upload .rds or .Rdata file to server
- Log into server and spin up R
- Change working directory to .rds or .Rdata location
- Load saved fit object using either readRDS() or load() functions (same error for both)
- fit <- readRDS("file-loc.rds")
- fit <- load("file-loc.Rdata")
- After the actual file loads successfully into the R environment, load lavaan
- Version 0.5.22
At the very least, you could avoid the error or warning by loading lavaan first, so that it recognizes the lavaan-class object you are loading into your workspace. But again, you shouldn't waste your time with steps 1, 2, 3, 5, 6. Just log into your server, then change the directory to where your data are located, import the data into R and fit your model. Then you can bootstrap easily.
install.packages("https://cran.r-project.org/src/contrib/Archive/lavaan/lavaan_0.5-22.tar.gz", type = "source", repos = NULL)--
You received this message because you are subscribed to a topic in the Google Groups "lavaan" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lavaan/0RLZE4-YKo8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.