Skip to content

Commit

Permalink
delegate as many GLMM properties as possible to internal LMM
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed May 15, 2024
1 parent c4beee9 commit c3acdf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/generalizedlinearmixedmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,12 @@ function Base.getproperty(m::GeneralizedLinearMixedModel, s::Symbol)
σs(m)
elseif s == :σρs
σρs(m)
elseif s (:A, :L, :optsum, :reterms, :Xymat, :feterm, :formula, :parmap)
getfield(m.LMM, s)
elseif s (:dims, , :lowerbd, :corr, :PCA, :rePCA, :X)
getproperty(m.LMM, s)
elseif s == :y
m.resp.y
elseif !hasfield(GeneralizedLinearMixedModel, s) && s propertynames(m.LMM, true)
# automatically delegate as much as possible to the internal local linear approximation
# NB: the !hasfield call has to be first since we're calling getproperty() with m.LMM...
getproperty(m.LMM, s)
else
getfield(m, s)
end
Expand Down

0 comments on commit c3acdf2

Please sign in to comment.