Skip to content

Commit

Permalink
Update R/confirmatoryfactoranalysis.R
Browse files Browse the repository at this point in the history
Co-authored-by: František Bartoš <[email protected]>
  • Loading branch information
juliuspfadt and FBartos authored Oct 16, 2024
1 parent dff0f98 commit 745f983
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/confirmatoryfactoranalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ confirmatoryFactorAnalysisInternal <- function(jaspResults, dataset, options, ..
if (options$group == "") grp <- NULL else grp <- options$group

if (anyNA(dataset)) {
naAction <- ifelse(options$naAction == "twoStageRobust", "robust.two.stage",
ifelse(options$naAction == "twoStage", "two.stage", options$naAction))
naAction <- switch(
options$naAction,
"twoStageRobust" = "robust.two.stage",
"twoStage" = "two.stage",
options$naAction)
} else {
naAction <- "listwise"
}
Expand Down

0 comments on commit 745f983

Please sign in to comment.