Skip to content

Commit ebe7906

Browse files
committed
start preparing tests for GLMMs with dispersion parameter
1 parent a79d32b commit ebe7906

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/pirls.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,15 @@ end
7777
#@test isapprox(sum(x -> sum(abs2, x), gm4.u), 196.8695297987013, atol=0.1)
7878
#@test isapprox(sum(gm4.resp.devresid), 220.92685781326136, atol=0.1)
7979
end
80+
81+
@testset "dispersion parameter" begin
82+
@testset "gaussian with non identity link" begin
83+
dyestuff = MixedModels.dataset(:dyestuff)
84+
gauss = fit(MixedModel, @formula(yield ~ 1 + (1|batch)), dyestuff, Normal(), SqrtLink(), fast=true)
85+
@test only(gauss.θ) 0.5528913 atol=0.001 # value from lme4
86+
end
87+
@testset "inverse gaussian" begin
88+
end
89+
@testset "gamma" begin
90+
end
91+
end

0 commit comments

Comments
 (0)