-
Notifications
You must be signed in to change notification settings - Fork 29
Description
JASP Version
0.19.3
Commit ID
No response
JASP Module
Unrelated
What analysis are you seeing the problem on?
Data
What OS are you seeing the problem on?
Windows 11
Bug Description
When using SPLIT with the zScores function,
if the SPLIT variable contains missing values, the function is not computed.
I have Data with Statistics scores and sex variable with some missing values.
In the function :
(zScores(Statistics) %|% sex)
I receive the following message: "NAs are not allowed in subscripted assignments", and the resulting variable consists entirely of missing values.
Expected Behaviour
One of two options:
-
The Z-scores will be calculated separately for sex = 1 and sex = 2, while subjects with missing sex will receive a missing value.
-
The Z-scores will be calculated for sex = 1 and sex = 2, while subjects with missing sex will receive a Z-score relative to the "missing sex" group.
Steps to Reproduce
create a new computed zScore function variable with split, where the split variable has missing values :
(Var2 has a missing value)
(zScores(Var1) %|% Var2)
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.