Validate distributional assumptions¶
Source: R/validation.R · Help: ?rvalidateDistributionalAssumptions
Assesses frequently used distributional assumptions before running heteroscedasticity diagnostics. The checks cover approximate normality, positivity for log-transformed quantities, sufficient variation, and the presence of extreme outliers.
Usage¶
Arguments¶
data- A data.frame containing the variables required for assessment.
assumptions-
A named list describing the desired checks. Recognised entries are:
normality– character vector or list with elementvariablesspecifying which columns should satisfy approximate normality. Optional list elementsalpha(significance level) andsample_limit(maximum sample size for the Shapiro–Wilk test) can be supplied.positive– character vector or list identifying variables that must contain positive values. When provided as a list,test_nameoverrides the label used in error messages.variation– character vector or list (withvariablesand optionaltolerance) describing variables that must exhibit non-negligible variance.outliers– character vector or list of variables to screen for extreme observations. Lists may include a numericthresholdspecifying the acceptable number of robust standard deviations.
Value¶
A list containing passed (logical flag), messages (character
vector of violations), warnings (character vector of recoverable issues),
and details (named list with diagnostic information for each assumption).