Skip to content

Commit

Permalink
LMM unclear why there is a difference still
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Oct 15, 2024
1 parent 628f670 commit 9c79578
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
f0 = @formula 0 ~ 1 + condition + (1 | subject)
f1 = @formula 0 ~ 1 + condition + continuous + (1 | subject)

m0 = fit(UnfoldModel, Dict(Any => (f0, times)), evts, data)
m1 = fit(UnfoldModel, Dict(Any => (f1, times)), evts, data)
m0 = fit(UnfoldModel, [Any => (f0, times)], evts, data)
m1 = fit(UnfoldModel, [Any => (f1, times)], evts, data)

tix = 4
evts[!, :y] = data[1, tix, :]
Expand All @@ -23,7 +23,7 @@
uf_lrt = likelihoodratiotest(m0, m1)
mm_lrt = MixedModels.likelihoodratiotest(lmm0, lmm1)

@test mm_lrt.pvalues uf_lrt[tix].pvalues
@test isapprox(mm_lrt.pvalues, uf_lrt[tix].pvalues, atol = 1e-20)



Expand Down

0 comments on commit 9c79578

Please sign in to comment.