[Feature Request]: Printing Standardized Residuals (ANOVA)
Description
Save the standardized residuals as a variable
Purpose
to check normality
Use-case
No response
Is your feature request related to a problem?
No response
Is your feature request related to a JASP module?
ANOVA
Describe the solution you would like
I would like to be able to save the standardized residuals in order to check normality using methods other than the QQ plots
Describe alternatives that you have considered
The ability to check skew/kurtosis and look at histograms/boxplots on the standardized residuals in the ANOVA tab rather than printing them. Also a method to flag outliers that would enable easy location and filtering of cases.
Additional context
I was teaching ANOVA on SPSS and used to get the students to save the standardized residuals and then check Z-Scores for skew and kurtosis, histograms and boxplots. We also used to use the standardized residuals to check outliers. Although the QQ plots are available I would like them to use a couple of different methods to check normality. I can see there is the option to save the residuals in the regression tab and I am hoping for the same functionality in the ANOVA tab (they have not learnt regression yet). Many thanks!
@RachelKing42 Thx for the certainly valid request. Until this is implemented (which might take some time) you already can do some of the things you requested - kind of. Have you tried the Raincloud Plots within the ANOVA analysis? This could highlight outliers and departures from normality per group on the raw data scale - so not for standardized residuals as you request. But I hope it may help you as a workaround in the mean time. Cheers, Thomas
This is related to: https://github.com/jasp-stats/jasp-issues/issues/2878
@tomtomme
Many thanks for your speedy reply. I do really like the raincloud plots!
All the best, Rachel
Hi @RachelKing42 ,
Yes, this is an excellent suggestion and is very high on my priority list for when I start working on JASP again after my teaching period, though that will only be in January
Cheers, Johnny
Hello Johnny and Thomas,
Many thanks for your reply and excellent to hear that the functionality will be available in the future!
For now I am wondering whether I can calculate the residuals in JASP using the R interface. To do so I need to be able to subtract the group mean, rather than the grand mean .. so I am looking for a method of splitting the data that would work in JASP when creating a new variable. Is this something that would be possible? I have been playing around without luck so thought it might be best to ask rather than continuing down a rabbit hole. :)
I have considered excel, but I think the approach might be a little too finicky for this level of study when it comes to the factorial designs. So if it is not possible within JASP I will probably stick to checking the raw data this time around.
Many thanks! Rachel
Hi Rachel.
You can add a new column with the group means using tapply in R-mode:
tapply(Heart Rate, Group, mean)[Group]
This will have the group means for each participant. You can then create another column that takes the difference between the new column and the grand mean (or do it directly in the first computed column).
However, I also fail to do it for factorial designs, but what you can do is do the ANOVA as a regression, export the residuals there, and then have a column defined as "DV - residuals", which then does give you the group means for the full factorial design (if you include the interaction in regression). I've attached the jasp file HeartRatePredictions.zip (change extension from .zip to .jasp). Hopefully that helps (in any case this was a fun puzzle!)
Cheers, Johnny
Awesome! Thank you! :D
[heart] Rachel King reacted to your message:
From: Johnny van Doorn @.> Sent: Friday, May 2, 2025 11:57:44 AM To: jasp-stats/jasp-issues @.> Cc: Rachel King @.>; Mention @.> Subject: Re: [jasp-stats/jasp-issues] [Feature Request]: Printing Standardized Residuals (ANOVA) (Issue #2989)
This message originated from outside of the University of Chichester. Do not click links or open attachments unless you recognise the sender and know the content is safe. Your access to links in this email will be held in a secure log, which is deleted after 365 days. If harmful links are accessed by individuals, this information may be used to offer targeted training in the future. You can read more in the University’s Electronic Information Security policy herehttps://www.chi.ac.uk/about-us/policies-and-statements/it-information-and-web.
Closed #2989https://github.com/jasp-stats/jasp-issues/issues/2989 as completed via jasp-stats/jaspAnova#428https://github.com/jasp-stats/jaspAnova/pull/428.
— Reply to this email directly, view it on GitHubhttps://github.com/jasp-stats/jasp-issues/issues/2989#event-17499040686, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMPOKEY4EKF2ORL4UAU65ZD24NMTNAVCNFSM6AAAAABQXF5KI2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJXGQ4TSMBUGA3DQNQ. You are receiving this because you were mentioned.Message ID: @.***>
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.