Skip to content

Commit 515d3cf

Browse files
committed
fix
1 parent f156607 commit 515d3cf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

R/get_varcov_fpc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ vcovFPC.merMod <- function(
156156

157157
# Cast the resulting matrix to a positive-definite symmetric matrix ("dpoMatrix")
158158
# to ensure compatibility with downstream methods like vcov()
159-
vcov_fixed_effects <- as(vcov_fixed_effects, "dpoMatrix")
159+
vcov_fixed_effects <- methods::as(vcov_fixed_effects, "dpoMatrix")
160160

161161
# Assign the original fixed effect parameter names to the rows and columns
162162
fe_names <- colnames(X)

tests/testthat/test-vcov_fpc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test_that("get_varcov, fpc, mixed", {
3636
D <- as.matrix(Matrix::Diagonal(nrow(Astar), fpc1) + tcrossprod(Astar))
3737
Fisher_I <- (crossprod(X) - crossprod(solve(t(chol(D)), Astar_X))) / fpc1
3838
Phi <- solve(Fisher_I) * sigma(object)^2
39-
Phi <- as(Phi, "dpoMatrix")
39+
Phi <- methods::as(Phi, "dpoMatrix")
4040
nmsX <- colnames(X)
4141
dimnames(Phi) <- list(nmsX, nmsX)
4242
if (!KR) {

0 commit comments

Comments
 (0)