Skip to content

Flexible Cutoffs for Model Fit Evaluation in Covariance-Based Structural Models

0packages depend
64.2Kdownloads / year
43.4%test coverage
12/13flavors OK

Overview

About

A toolbox to derive flexible cutoffs for fit indices in 'Covariance-based Structural Equation Modeling' based on the paper by 'Niemand & Mai (2018)' doi:10.1007/s11747-018-0602-9. Flexible cutoffs are an alternative to fixed cutoffs - rules-of-thumb - regarding an appropriate cutoff for fit indices such as 'CFI' or 'SRMR'. It has been demonstrated that these flexible cutoffs perform better than fixed cutoffs in grey areas where misspecification is not easy to detect. The package provides an alternative to the tool at https://flexiblecutoffs.org as it allows to tailor flexible cutoffs to a given dataset and model, which is so far not available in the tool. The package simulates fit indices based on a given dataset and model and then estimates the flexible cutoffs. Some useful functions, e.g., to determine the 'GoF-' or 'BoF-nature' of a fit index, are provided. So far, additional options for a relative use (is a model better than another?) are provided in an exploratory manner.

Changes in 2.0.2
  • Small changes to solve CRAN check errors on some platforms.

------------------------------------------------------------------------

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORtestsr-oldrel-macos-arm64
Running ‘testthat.R’ [51s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(FCO)
  > 
  > test_check("FCO")
  This is lavaan 0.7-3
  lavaan is FREE software! Please report any bugs.
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  Merging is selected as the discriminant validity testing option given the provided arguments.
  Merging is selected as the discriminant validity testing option given the provided arguments.
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
  
...[truncated]...
 ── Error ('test-recommend_dv.R:57:13'): Is the proper dv technique used? constraining? ──
  Error in `recommend_dv(fits = fits.dv.con, )`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.con, )) at test-recommend_dv.R:57:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend_dv(fits = fits.dv.con, )
  ── Error ('test-recommend_dv.R:65:13'): Is the result rounded properly? ────────
  Error in `recommend_dv(fits = fits.dv.con, digits = 5)`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.con, digits = 5)) at test-recommend_dv.R:65:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend_dv(fits = fits.dv.con, digits = 5)
  
  [ FAIL 9 | WARN 8 | SKIP 0 | PASS 65 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 4.7 min · r-oldrel-macos-x86_64
Status changes
  • ERROR12 OK, 1 ERRORNow
  • ERROR12 OK, 2 ERROR2026-03-10
Advisories

none known

Documentation

In release 2.0.2
READMEYes · 420 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 2.0.2Citation fileNoWebsiteYes
Help pages
9
Examples that run
56%5 run in a plain check · 4 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
44%
Vignettes (1)

Downloads

64.2K
CRAN downloads in the past year
Rank #12,860 · ~176/day · ~5.3K/mo
Daily download trend is not available in this view yet.
36630 days
88090 days
64.2K1 year
Compare downloads with other packages →
Also on87 r2u4 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-02-25
Responsiveness
not measured
PracticesBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/thomasniemand/fco on 2026-10-21.

Docs source (1)
README.Rmd
CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing FCO adds 113 packages (58 with compiled code, 79 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.4.0
LinkingTo (0)
none
Suggests (4)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 0.7.2 (2022)
Contributor · added in 2.0.0
Contributor
Contributor · added in 2.0.0
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.2Latest
    record
    2026-02-26 · current release · diff ↗
  • 2.0.1
    record
    2026-02-13 · diff ↗
  • 2.0.0
    record
    2025-09-25 · diff ↗ ·
    removed 1 export
    index_guess
    added 3 exports
    flex_co2, gen_fit2, plot_fit2
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.8.0
    record
    2023-03-17 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.7.2
    record
    2022-02-11
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-02-11
Total releases
5 / 4 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 4.4.0
Bundled data
83 KB / 1 file
Download size
182 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("FCO")
Niemand, T., Falke, A., Mai, R., & Schröder, N. (2026). FCO: Flexible Cutoffs for Model Fit Evaluation in Covariance-Based Structural Models (Version 2.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.FCO

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for FCO version 2.0.2 [Data set]. HJJB, LLC. Data release v2026-10-23. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy