DistMod: Distrobution Modifier

Description Usage Arguments Details Value Note Author(s) References Examples

Description

Examines three variations of the given data: the original set, the square root of values in the set, and the log of the values in the set to determine which is most normal by IQR/SD. Also plots data

Usage

1
DistMod(observation, treatments)

Arguments

observation

Set of numeric values to be evaluated

treatments

Set of factors by which to separate observation

Details

This evaluates either a single vector or a vector separated by provided factors

Value

For less than two factors the function returs three values and an arrow to the most normal (whichever is closest to 1.34), for 2 or more factors, it returns the three values for each set of observations by factor.

Original

The IQR/SD for the original data

Square root

The IQR/SD for the square root of the data

Log

The IQR/SD for the log of the data

Boxplot
Histogram

Note

Written for MAT 342 Spring 2019

Author(s)

Frederick Kaesmann Jr

References

My github -> https://github.com/ftkjr/SummaryPack

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## No treatment variables

data("CO2")

DistMod(CO2$uptake)

####

## treatment with multiple factors

HairEyeColor <- as.data.frame(data("HairEyeColor"))

DistMod(HairEyeColor$Freq, HairEyeColor$Eye)

ftkjr/SummaryPack documentation built on June 4, 2019, 8:23 a.m.