AnalyseResiduals: AnalyseResiduals

View source: R/NPSimulation.R

AnalyseResidualsR Documentation

AnalyseResiduals

Description

The function calculates sample statistics based on the residuals from a specified experiment

Usage

AnalyseResiduals(Residuals, ExperimentName = "ExpName")

Arguments

Residuals

a vector of residuals

ExperimentName

a character string identifying the data set

Value

A dataframe identifying the ExperimentName and its associated sample parameter: Length, Mean, Median, Variance, Standard deviation, skewness, kurtosis, the outcome of the Shapiro and Anderson-Darling normality test and the number of outliers.

Author(s)

Barbara Kitchenham and Lech Madeyski

Examples

ExpData=rnorm(30,0,1)
set.seed(123)
AnalyseResiduals(Residuals=ExpData,ExperimentName='ExpName')
#  ExperimentName       Mean      Median  Variance   Skewness Kurtosis ShapiroTest AndersonDarling
#1        ExpName -0.1396192 -0.01943395 0.8424521 -0.1964175 4.559587   0.1608315       0.1316835
#  NumOut
#  1

reproducer documentation built on Oct. 18, 2023, 5:10 p.m.