Skip to content

Commit 01c1801

Browse files
author
Alexey Stukalov
committed
check_meanstruct_spec(): remove
it should always match implied
1 parent f7f28d7 commit 01c1801

3 files changed

Lines changed: 0 additions & 18 deletions

File tree

src/implied/RAM/generic.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

src/implied/RAM/symbolic.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/implied/abstract.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,3 @@ function check_acyclic(A::AbstractMatrix; verbose::Bool = false)
3232
return A
3333
end
3434
end
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

0 commit comments

Comments
 (0)