Skip to content

Commit c87e8d1

Browse files
authored
update docs, fix copy-paste error for parametricbootstrap methods (#267)
* update docs, fix copy-paste error for parametricbootstrap methods * docs preview reveals another error * update doc string
1 parent 7bfeaaa commit c87e8d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/simulate.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ issingular(bsamp::MixedModelBootstrap) = issingular.(Ref(bsamp.m), bsamp.θ)
4242

4343
"""
4444
parametricbootstrap(rng::AbstractRNG, nsamp::Integer, m::LinearMixedModel;
45-
β = m.β, σ = m.σ, θ = m.θ)
45+
β = coef(m), σ = m.σ, θ = m.θ, use_threads=false)
4646
parametricbootstrap(nsamp::Integer, m::LinearMixedModel;
47-
β = m.β, σ = m.σ, θ = m.θ)
47+
β = coef(m), σ = m.σ, θ = m.θ, use_threads=false)
4848
4949
Perform `nsamp` parametric bootstrap replication fits of `m`, returning a `MixedModelBootstrap`.
5050
@@ -53,6 +53,7 @@ The default random number generator is `Random.GLOBAL_RNG`.
5353
# Named Arguments
5454
5555
`β`, `σ`, and `θ` are the values of `m`'s parameters for simulating the responses.
56+
`use_threads` determines whether or not to use thread-based parallelism.
5657
"""
5758
function parametricbootstrap(
5859
rng::AbstractRNG,
@@ -112,7 +113,7 @@ function parametricbootstrap(
112113
end
113114

114115
function parametricbootstrap(nsamp::Integer, m::LinearMixedModel; β = m.β, σ = m.σ, θ = m.θ, use_threads = false)
115-
parametricbootstrap(Random.GLOBAL_RNG, nsamp, m, β = β, σ = σ, θ = θ, use_threads = false)
116+
parametricbootstrap(Random.GLOBAL_RNG, nsamp, m, β = β, σ = σ, θ = θ, use_threads = use_threads)
116117
end
117118

118119
function Base.propertynames(bsamp::MixedModelBootstrap)

0 commit comments

Comments
 (0)