mingrisch / compartmentmodels

Tracer-kinetic models for DCE MRI
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Shapiro-Wilk test #23

Closed AndreasMittermeier closed 9 years ago

AndreasMittermeier commented 9 years ago

Shapiro-Wilk test checks, whether a sample came from a normal distributed population. Include the test before the bootstrapping loop.

If calculated residuals are normal distributed: proceed normally. If calculated residuals are not normal distributed: return a warning 'maybe change model'