Skip to content

[Bug]: Classic Process Models uninformative errors when categorical predictor levels have spaces #3597

@bnevicka

Description

@bnevicka

JASP Version

0.95.0

Commit ID

No response

JASP Module

Process

What analysis are you seeing the problem on?

I tested Model 1 and Model 4 and neither of them ran

What OS are you seeing the problem on?

macOS Silicon

Bug Description

I was testing a simple moderation model (Model 1) with a categorical predictor and continuous moderator and the model did not run and reported the following error:

_Error in str2lang(paste(vSplit, collapse = '*')): :1:29: unexpected symbol
1: emregemotion regulation
^

Stack trace
tryCatchOne(expr, names, parentenv, handlers[[1]])

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

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

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

.procModProbes(jaspResults, dataset, options)

.procModProbesSingleModel(modelsContainer[[modelName]], dataset, options)

.procMeanCenter(container[['graph']]$object, dataset, options)

eval(str2lang(paste(vSplit, collapse = '*')), envir = dataset)

str2lang(paste(vSplit, collapse = '*'))_

I then ran model 4 (simple mediation) and this model also did not provide results and only the following error:

Estimation failed because of an internal error.

Image Image Image Image

Expected Behaviour

This is not an issue with the datafile because I tested both of these models in SPSS with the Process macro and they both worked and provided results.

Steps to Reproduce

  1. I added in the relevant variables
  2. I then specified the Hayes model as either model 1 or model 4
  3. I then added the relevant variables for the model (i.e., predictor and then moderator (W) or mediator)

Log (if any)

No response

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

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions