Skip to content

Commit f3a1eb2

Browse files
committed
Merge branch 'pa/issue792' of github.com:JuliaStats/MixedModels.jl into pa/issue792
2 parents b771dbe + dcc441e commit f3a1eb2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/generalizedlinearmixedmodel.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function GeneralizedLinearMixedModel(
364364
kwargs...,
365365
)
366366
return GeneralizedLinearMixedModel(
367-
f, Tables.columntable(tbl), d, l; kwargs...,
367+
f, Tables.columntable(tbl), d, l; kwargs...
368368
)
369369
end
370370

@@ -467,15 +467,15 @@ function GeneralizedLinearMixedModel(
467467

468468
# if the response is constant, there's no point (and this may even fail)
469469
constresponse || try
470-
deviance!(res, 1)
471-
catch ex
472-
ex isa PosDefException || rethrow()
473-
@warn "Evaluation at default initial parameter vector failed, " *
474-
"initializing to very small variances. This may result in long " *
475-
"model fitting times. You will probably also need to use " *
476-
"`init_from_lmm=[:β, :θ]` in order to fit the model."
477-
res.optsum.initial[res.optsum.initial .!= 0] .= 1e-8
478-
end
470+
deviance!(res, 1)
471+
catch ex
472+
ex isa PosDefException || rethrow()
473+
@warn "Evaluation at default initial parameter vector failed, " *
474+
"initializing to very small variances. This may result in long " *
475+
"model fitting times. You will probably also need to use " *
476+
"`init_from_lmm=[:β, :θ]` in order to fit the model."
477+
res.optsum.initial[res.optsum.initial .!= 0] .= 1e-8
478+
end
479479

480480
return res
481481
end

0 commit comments

Comments
 (0)