Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Printing Standardized Residuals (ANOVA) #2989

Open
RachelKing42 opened this issue Oct 28, 2024 · 7 comments
Open

[Feature Request]: Printing Standardized Residuals (ANOVA) #2989

RachelKing42 opened this issue Oct 28, 2024 · 7 comments

Comments

@RachelKing42
Copy link

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!

@tomtomme
Copy link
Member

@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

@tomtomme
Copy link
Member

This is related to: #2878

@RachelKing42
Copy link
Author

@tomtomme

Many thanks for your speedy reply. I do really like the raincloud plots!

All the best,
Rachel

@JohnnyDoorn
Copy link

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

@RachelKing42
Copy link
Author

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

@JohnnyDoorn
Copy link

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

@RachelKing42
Copy link
Author

Awesome! Thank you! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants