Skip to content

[Bug]: PLS SEM receives error when Bootstrapping for more than 2k samples #3642

@Geomarch

Description

@Geomarch

JASP Version

0.95.1

Commit ID

No response

JASP Module

SEM

What analysis are you seeing the problem on?

PLS SEM

What OS are you seeing the problem on?

Windows 11

Bug Description

Hi,

Would appreciate it if you can help on the following.

Here is the error:

This analysis terminated unexpectedly.

Error: The following error occured in the calculateModelSelectionCriteria() function:
.object must be of class cSEMResults.

Stack trace
doTryCatch(return(expr), name, parentenv, handler)

withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)

analysis(jaspResults = jaspResults, dataset = dataset, options = options)

.plsSemFitTab(modelContainer, dataset, options, ready)

.withWarnings(.computeMSC(results, dataset, options))

withCallingHandlers(expr, warning = wHandler)

.computeMSC(results, dataset, options)

cSEM::calculateModelSelectionCriteria(resultsCopy, .only_structural = FALSE, .by_equation = FALSE)

stop2('The following error occured in the calculateModelSelectionCriteria() function:n', '.object must be of class cSEMResults.')

stop(..., call. = FALSE)

Expected Behaviour

The complete analysis should show.

Steps to Reproduce

The system works when I use 1k samples but crashes when I used 2k and up.

Log (if any)

This analysis terminated unexpectedly.

Error: The following error occured in the calculateModelSelectionCriteria() function:
.object must be of class cSEMResults.

Stack trace
doTryCatch(return(expr), name, parentenv, handler)

withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)

analysis(jaspResults = jaspResults, dataset = dataset, options = options)

.plsSemFitTab(modelContainer, dataset, options, ready)

.withWarnings(.computeMSC(results, dataset, options))

withCallingHandlers(expr, warning = wHandler)

.computeMSC(results, dataset, options)

cSEM::calculateModelSelectionCriteria(resultsCopy, .only_structural = FALSE, .by_equation = FALSE)

stop2('The following error occured in the calculateModelSelectionCriteria() function:n', '.object must be of class cSEMResults.')

stop(..., call. = FALSE)

Image

More Debug Information

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.

Metadata

Metadata

Assignees

Labels

Bug: MediumBugs that don't influence the basic function of the app, but it's better to fix them at some point.Module: jaspSem

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions