Skip to content

Commit dc4fef6

Browse files
Maximilian-Stefan-Ernstalyst
authored andcommitted
RAM ctor: better error for missing meanstruct
1 parent 8ef75c2 commit dc4fef6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/imply/RAM/generic.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function RAM(;
143143
# μ
144144
if meanstructure
145145
has_meanstructure = Val(true)
146+
!isnothing(M_indices) || throw(ArgumentError("You set `meanstructure = true`, but your model specification contains no mean parameters."))
146147
∇M = gradient ? matrix_gradient(M_indices, n_nod) : nothing
147148
μ = zeros(n_var)
148149
else

0 commit comments

Comments
 (0)