Skip to content

Commit

Permalink
update to add_population_error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChristensen committed Jun 11, 2024
1 parent a13e2e7 commit 0d20ae7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions R/add_population_error.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#'
#' @param cfa_method Character (length = 1).
#' Method to generate population error.
#' Defaults to \code{"minres"}.
#' Defaults to \code{"ml"}.
#' Available options:
#'
#' \itemize{
Expand Down Expand Up @@ -169,7 +169,7 @@
#' @export
#'
# Add population error to simulated data
# Updated 26.05.2024
# Updated 11.06.2024
add_population_error <- function(
lf_object,
cfa_method = c("minres", "ml"),
Expand Down Expand Up @@ -202,7 +202,7 @@ add_population_error <- function(

# Check for missing CFA method
if(missing(cfa_method)){
cfa_method <- "minres"
cfa_method <- "ml"
}else{cfa_method <- tolower(match.arg(cfa_method))}

# Check for missing fit
Expand Down Expand Up @@ -675,6 +675,7 @@ add_population_error <- function(
delta = population_error$delta,
misfit = population_error$misfit,
loadings = error_loadings,
MAX_residual = max_abs_res,
SRMR_difference = SRMR_difference,
MAE_loadings = MAE
)
Expand Down
2 changes: 1 addition & 1 deletion man/add_population_error.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0d20ae7

Please sign in to comment.