File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ function RAM(
9494)
9595 ram_matrices = convert (RAMMatrices, spec)
9696
97- check_meanstructure_specification (meanstructure, ram_matrices)
98-
9997 # get dimensions of the model
10098 n_par = nparams (ram_matrices)
10199 n_obs = nobserved_vars (ram_matrices)
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ function RAMSymbolic(
8888)
8989 ram_matrices = convert (RAMMatrices, spec)
9090
91- check_meanstructure_specification (meanstructure, ram_matrices)
92-
9391 n_par = nparams (ram_matrices)
9492 par = (Symbolics. @variables θ[1 : n_par])[1 ]
9593
Original file line number Diff line number Diff line change @@ -32,17 +32,3 @@ function check_acyclic(A::AbstractMatrix; verbose::Bool = false)
3232 return A
3333 end
3434end
35-
36- # Verify that the `meanstructure` argument aligns with the model specification.
37- function check_meanstructure_specification (meanstructure, ram_matrices)
38- if meanstructure & isnothing (ram_matrices. M)
39- throw (ArgumentError (
40- " You set `meanstructure = true`, but your model specification contains no mean parameters."
41- ))
42- end
43- if ! meanstructure & ! isnothing (ram_matrices. M)
44- throw (ArgumentError (
45- " If your model specification contains mean parameters, you have to set `Sem(..., meanstructure = true)`."
46- ))
47- end
48- end
You can’t perform that action at this time.
0 commit comments