Skip to content

Commit

Permalink
Change local tests to only use free parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
maltelueken committed Sep 19, 2023
1 parent 0cae0e1 commit 4bccf21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/classicProcess.R
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,8 @@ ClassicProcess <- function(jaspResults, dataset = NULL, options) {
}

parTable <- lavaan::parTable(procResults)
parTable <- parTable[parTable$op != ":=" & !grepl(":|__", parTable$rhs) & !grepl(":|__", parTable$lhs),]
# Only include free parameters in DAG
parTable <- parTable[parTable$op != ":=" & parTable$free > 0 & !grepl(":|__", parTable$rhs) & !grepl(":|__", parTable$lhs),]

arrows <- apply(parTable, 1, function(row) {
op <- switch(row[["op"]],
Expand Down

0 comments on commit 4bccf21

Please sign in to comment.