Skip to content

Commit

Permalink
fix #366
Browse files Browse the repository at this point in the history
  • Loading branch information
TDJorgensen committed Jul 3, 2024
1 parent 89276a4 commit d71ef0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/lav_samplestats.R
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,7 @@ lav_samplestats_from_moments <- function(sample.cov = NULL,
ord.idx <- which(th.idx[[g]] > 0)
num.idx <- which(th.idx[[g]] == 0)
if (length(ord.idx) > 0L) {
th.g[ord.idx] <- sample.th[[g]]
th.g[ord.idx] <- sample.th[[g]][ord.idx]
}
if (length(num.idx) > 0L) {
ord.var.idx <- unique(th.idx[[g]][th.idx[[g]] > 0])
Expand Down Expand Up @@ -1486,7 +1486,7 @@ lav_samplestats_from_moments <- function(sample.cov = NULL,
ord.idx <- which(th.idx[[g]] > 0)
num.idx <- which(th.idx[[g]] == 0)
if (length(ord.idx) > 0L) {
th.g[ord.idx] <- sample.th[[g]]
th.g[ord.idx] <- sample.th[[g]][ord.idx]
}
if (length(num.idx) > 0L) {
ord.var.idx <- unique(th.idx[[g]][th.idx[[g]] > 0])
Expand Down

0 comments on commit d71ef0f

Please sign in to comment.