jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
55 stars 29 forks source link

[Bug]: error message when trying to perform LGCM in JASP #2764

Closed caroliee closed 2 weeks ago

caroliee commented 3 weeks ago

JASP Version

0.18.3

Commit ID

No response

JASP Module

SEM

What analysis are you seeing the problem on?

Latent growth curve model

What OS are you seeing the problem on?

Windows 10

Bug Description

I was executing a latent growth curve model with 6 time points. When I added a factor "group" (1 = intervention, 2 = control) the following error message shows up:

Error in .lgcmEnrichData(dataset, options): object 'currentNa' not found

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)

.lgcmEnrichData(dataset, options)

options(na.action = currentNa)

Expected Behaviour

Regression coefficients for the groups should be displayed

Steps to Reproduce

I have the same issue when i perform the latent curve model with the example dataset from this JASP tutorial site: https://jasp-stats.org/2022/02/22/latent-growth-curve-modeling-lgcm-in-jasp/ LGCM gpa dataset with factor LGCM my dataset with factor group LGCM my dataset without factor

Log (if any)

No response

Final Checklist

juliuspfadt commented 2 weeks ago

@caroliee, thanks for creating the issue. I think this should be fixed in the next release (https://github.com/jasp-stats/jaspSem/pull/205), alternatively you can try one of the JASP nightly versions, it should also already be fixed there.