Skip to content

Commit b450871

Browse files
committed
blue
1 parent 026f71c commit b450871

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

src/eigen.jl

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,16 @@ function update_res_reml!(
211211
model :: MRTVCModel{T}
212212
) where T <: BlasReal
213213
# update R̃ = Ỹ - X̃B
214-
BLAS.gemm!('N', 'N', -one(T), model.X̃_reml, model.B_reml, one(T), copyto!(model.R̃_reml, model.Ỹ_reml))
214+
BLAS.gemm!('N', 'N', -one(T), model.X̃_reml, model.B_reml, one(T),
215+
copyto!(model.R̃_reml, model.Ỹ_reml))
215216
model.
216217
end
217218

218219
"""
219220
loglikelihood(model::MRTVCModel)
220221
221-
Return the residual log-likelihood, assuming `model.Λ`, `model.Φ`, `model.logdetΣ2`, and `model.R̃Φ` are updated.
222+
Return the residual log-likelihood, assuming `model.Λ`, `model.Φ`, `model.logdetΣ2`, and
223+
`model.R̃Φ` are updated.
222224
"""
223225
function loglikelihood(
224226
model :: MRTVCModel{T}
@@ -239,7 +241,8 @@ end
239241
"""
240242
loglikelihood_reml(model::MRTVCModel)
241243
242-
Return the log-likelihood, assuming `model.Λ`, `model.Φ`, `model.logdetΣ2`, and `model.R̃Φ_reml` are updated.
244+
Return the log-likelihood, assuming `model.Λ`, `model.Φ`, `model.logdetΣ2`, and
245+
`model.R̃Φ_reml` are updated.
243246
"""
244247
function loglikelihood_reml(
245248
model :: MRTVCModel{T}
@@ -345,8 +348,8 @@ end
345348
"""
346349
fisher_B_reml!(model::MRTVCModel)
347350
348-
Compute the sampling variance-covariance `model.Bcov_reml` of regression coefficients `model.B_reml`,
349-
assuming `model.Λ` and `model.Φ` are updated.
351+
Compute the sampling variance-covariance `model.Bcov_reml` of regression coefficients
352+
`model.B_reml`, assuming `model.Λ` and `model.Φ` are updated.
350353
"""
351354
function fisher_B_reml!(
352355
model :: MRTVCModel{T}
@@ -366,8 +369,8 @@ end
366369
"""
367370
fisher_Σ!(model::MRTVCModel)
368371
369-
Compute the sampling variance-covariance `model.Σcov` of variance component estimates `model.Σ`,
370-
assuming `model.Λ` and `model.Φ` are updated.
372+
Compute the sampling variance-covariance `model.Σcov` of variance component estimates
373+
`model.Σ`, assuming `model.Λ` and `model.Φ` are updated.
371374
"""
372375
function fisher_Σ!(
373376
model :: MRTVCModel{T}

test/missing_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
@testset "fit! missing response with MM" begin
5151
model = MRVCModel(Y_miss, X, V; se = false)
5252
@timev MRVCModels.fit!(model)
53-
# @test model.logl[1] ≈ -4435.064121104977
53+
# @test model.logl[1] ≈ -4434.987288578773
5454
end
5555

5656
end

0 commit comments

Comments
 (0)