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'
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'