Skip to content

Commit

Permalink
Merge pull request #364 from haziqj/pml-fix
Browse files Browse the repository at this point in the history
Remove pipes and \(x)
  • Loading branch information
yrosseel authored Jun 20, 2024
2 parents 252ee3e + 0ca17c4 commit fbc64df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/lav_model_h1_information.R
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,7 @@ lav_model_h1_information_firstorder <- function(lavobject = NULL,
zb[[b]] <- apply(SC_b * WT_b, 2, sum)
}
zbar <- apply(do.call(cbind, zb), 1, mean)
B1c <-
lapply(zb, \(z) tcrossprod(z - zbar)) |>
Reduce(f = `+`)
B1c <- Reduce(f = `+`, lapply(zb, function(z) tcrossprod(z - zbar)))
B1[[g]] <- nclust / (nclust - 1) * B1c

} else {
Expand Down

0 comments on commit fbc64df

Please sign in to comment.