jasp-stats / jasp-issues

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

[Feature Request]: Shapiro-Wilk test for normality in regression module #2878

Open TarandeepKang opened 3 weeks ago

TarandeepKang commented 3 weeks ago

Description

Enhance existing normality testing and mirror functionality available in other modules

Purpose

No response

Use-case

No response

Is your feature request related to a problem?

Currently normality testing can be done graphically some may prefer an additional numerical test

Is your feature request related to a JASP module?

Regression

Describe the solution you would like

Consider implementing Shapiro-Wilk test across regression and consider consistent naming and organisation of assumption checks across regression module and t-test

Describe alternatives that you have considered

No response

Additional context

No response

TarandeepKang commented 3 weeks ago

A follow-up question, if I may? You have recently implemented the improved version in MANOVA. Would it be worth also implementing this version everywhere the current multivariate Shapiro-Wilk is used (i.e. correlation et cetera)?

tomtomme commented 2 weeks ago

Transfering my list with what we have and what we miss in terms of assumption checks from https://github.com/jasp-stats/jasp-issues/issues/490#issuecomment-1901141226

Variance tests

Normality Tests

Linearity Test (logistic)

Box-Tidwell https://stackoverflow.com/questions/66618959/how-to-run-a-box-tidwell-test-in-r-to-test-for-a-linear-relationship-between-the https://statistics.laerd.com/spss-tutorials/binomial-logistic-regression-using-spss-statistics.php

Hosmer-lemeshow https://cran.r-project.org/web/packages/generalhoslem/index.html

le Cessie-van Houwelingen-Copas-Hosmer https://search.r-project.org/CRAN/refmans/DescTools/html/HosmerLemeshowTest.html https://www.rdocumentation.org/packages/rms/versions/6.8-0/topics/residuals.lrm

Refs Hosmer, D. W., Hosmer, T., Le Cessie, S., & Lemeshow, S. (1997). A Comparison of Goodness-of-Fit Tests for the Logistic Regression Model. Statistics in Medicine, 16(9), 965–980. https://doi.org/10.1002/(SICI)1097-0258(19970515)16:9<965::AID-SIM509>3.0.CO;2-O Hosmer, D. W., & Lemesbow, S. (1980). Goodness of fit tests for the multiple logistic regression model. Communications in Statistics - Theory and Methods, 9(10), 1043–1069. https://doi.org/10.1080/03610928008827941 le Cessie, S., & van Houwelingen, J. C. (1991). A Goodness-of-Fit Test for Binary Regression Models, Based on Smoothing Methods. Biometrics, 47(4), 1267–1282. https://doi.org/10.2307/2532385 LEMESHOW, S., & HOSMER, D. W., JR. (1982). A REVIEW OF GOODNESS OF FIT STATISTICS FOR USE IN THE DEVELOPMENT OF LOGISTIC REGRESSION MODELS1. American Journal of Epidemiology, 115(1), 92–106. https://doi.org/10.1093/oxfordjournals.aje.a113284