From 782365d82d1545dc70ec300553b7355b2a30da42 Mon Sep 17 00:00:00 2001 From: CompatHelper Julia Date: Tue, 2 Sep 2025 11:21:53 +0000 Subject: [PATCH 1/3] CompatHelper: bump compat for MixedModels to 5, (keep existing compat) --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index fdee096..8e3d6d1 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MixedModelsSim" uuid = "d5ae56c5-23ca-4a1f-b505-9fc4796fc1fe" authors = ["Phillip Alday", "Douglas Bates", "Lisa DeBruine", "Reinhold Kliegl"] -version = "0.2.11" +version = "0.2.12" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" @@ -14,7 +14,7 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" [compat] LinearAlgebra = "1" -MixedModels = "4" +MixedModels = "4, 5" PooledArrays = "0.5, 1" PrettyTables = "0.11, 0.12, 1, 2" Statistics = "1" From 8b0548af852180675c005239df919717c0d16dee Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Tue, 2 Sep 2025 14:34:00 +0200 Subject: [PATCH 2/3] remove some deprecated kwargs --- docs/src/simulation_tutorial.md | 15 +++++---------- test/power.jl | 2 +- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/docs/src/simulation_tutorial.md b/docs/src/simulation_tutorial.md index 83ac314..92ce9c3 100644 --- a/docs/src/simulation_tutorial.md +++ b/docs/src/simulation_tutorial.md @@ -117,11 +117,9 @@ rng = StableRNG(42); Run nsims iterations: ```@example Main -kb07_sim = parametricbootstrap(rng, nsims, kb07_m; use_threads = false); +kb07_sim = parametricbootstrap(rng, nsims, kb07_m); ``` -**Try**: Run the code above with or without `use_threads = true`. Did performance get better or worse? Check out the help information `parametricbootstrap` to see why! - The returned value `kb07_sim` contains the results of the bootstrapping procedure, which we can convert to a dataframe ```@example Main @@ -221,7 +219,7 @@ new_beta[2:4] = kb07_m.β[2:4] / 2 Run simulations: ```@example Main -kb07_sim_half = parametricbootstrap(StableRNG(42), nsims, kb07_m; β = new_beta, use_threads = false); +kb07_sim_half = parametricbootstrap(StableRNG(42), nsims, kb07_m; β = new_beta); ``` ### Power calculation @@ -485,8 +483,7 @@ Run nsims iterations: sim1 = parametricbootstrap(rng, nsims, m1; β = new_beta, σ = new_sigma, - θ = new_theta, - use_threads = false); + θ = new_theta); ``` ### Power calculation @@ -644,8 +641,7 @@ Run nsims iterations: fake_kb07_sim = parametricbootstrap(rng, nsims, fake_kb07_m, β = new_beta, σ = new_sigma, - θ = new_theta, - use_threads = false); + θ = new_theta); ``` ### Power calculation @@ -765,8 +761,7 @@ nothing # hide β = new_beta, σ = new_sigma, θ = new_theta, - use_threads = false, - hide_progress=true); + progress=false); # Power calculation local ptbl = power_table(fake_sim) diff --git a/test/power.jl b/test/power.jl index 17fedcc..5559e2d 100644 --- a/test/power.jl +++ b/test/power.jl @@ -16,7 +16,7 @@ dat = simdat_crossed(StableRNG(42), subj_n, item_n; form = @formula(dv ~ 1 + age + pet + cond + time + (1 | subj) + (1 | item)); cont = Dict(nm => HelmertCoding() for nm in (:age, :pet, :cond, :time)); fm1 = fit(MixedModel, form, dat; contrasts=cont, REML=false, progress=false); -sim = parametricbootstrap(StableRNG(42), 10, fm1; use_threads=false, hide_progress=true); +sim = parametricbootstrap(StableRNG(42), 10, fm1; progress=false); @testset "power_table" begin pt = power_table(sim) From 7b5d2c960c113fd7834357a579bc5c272e8cef5f Mon Sep 17 00:00:00 2001 From: Phillip Alday Date: Tue, 2 Sep 2025 14:34:08 +0200 Subject: [PATCH 3/3] compat tweaks --- Project.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 8e3d6d1..b2bae57 100644 --- a/Project.toml +++ b/Project.toml @@ -14,9 +14,9 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c" [compat] LinearAlgebra = "1" -MixedModels = "4, 5" +MixedModels = "4.22, 5" PooledArrays = "0.5, 1" PrettyTables = "0.11, 0.12, 1, 2" Statistics = "1" Tables = "1.0" -julia = "1.6" +julia = "1.10"