We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef75c2 commit dc4fef6Copy full SHA for dc4fef6
1 file changed
src/imply/RAM/generic.jl
@@ -143,6 +143,7 @@ function RAM(;
143
# μ
144
if meanstructure
145
has_meanstructure = Val(true)
146
+ !isnothing(M_indices) || throw(ArgumentError("You set `meanstructure = true`, but your model specification contains no mean parameters."))
147
∇M = gradient ? matrix_gradient(M_indices, n_nod) : nothing
148
μ = zeros(n_var)
149
else
0 commit comments