Skip to content

Commit d5d7a81

Browse files
committed
Add output from insteval model
1 parent 9bb2cb9 commit d5d7a81

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/prima.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,17 @@ end
9898

9999
@test startswith(out, expected)
100100
end
101+
102+
@testset "instvalfits" begin # repeat the fits from the Blocked Cholesky paper
103+
dat = dataset(:insteval)
104+
f1 = @formula(y ~ 1 + service + (1|s) + (1|d) + (1|dept) + (0 + service|dept))
105+
progress = false
106+
m1 = fit(MixedModel, f1, dat; progress)
107+
println(m1)
108+
println(m1.optsum)
109+
@test isapprox(objective(m1), 237648.6016)
110+
prfit!(m1; progress)
111+
println(m1)
112+
println(m1.optsum)
113+
@test isapprox(objective(m1), 237648.6016)
114+
end

0 commit comments

Comments
 (0)