RBD: Randomized Block Design

Description Usage Arguments Value Note Author(s) References Examples

Description

Evaluates provided data through some summary statistics, tests, and plots.

Usage

1
RBD(observations, treatments, block, confidenceInterval)

Arguments

observations

A numeric vector

treatments

Set of factors which breaks down observations

block

Set of factors to be isolated, "Something you can't control and something you usually aren't interested in." - Prof Ray Mugno

confidenceInterval

Level of confidence to compare against p values. If unentered, .05 is assumed.

LeveneBlock

Assumed FALSE unless provided as TRUE. If TRUE, runs Levene Test on observations by block.

plot

Assumed TRUE, if FALSE doesn't print any of the plots (including Tukey)

Value

Starting from the Top

Confidence Interval

Prints what confidence interval you're using

Observation Summary

Prints 5 Number Summary for just the observations vector

Summary by Treatment

5 Number Summary for observations by treatments

Levene Test by Treatment

Levene Test of observations by treatments

Levene Test by Block

If TRUE, runs Levene Test of observations by block. Assumed FALSE

ANOVA Table

If Levene Test proves data is not heteroscedastic then runs ANOVA Table

Tukey Table

If ANOVA rejects Null Hypothesis then we examine data with a Tukey Table and plots it

Boxplots

Plots a boxplot of observations~treatments, as well as a ggboxplot of all three variables.

Note

Created for Professor Ray Mugno's 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
##

data("CO2")
RBD(CO2$uptake, CO2$Plant, CO2$Type, .04, LeveneBlock = TRUE)

###

data("CO2")
RBD(CO2$uptake, CO2$Plant, CO2$Type)

##

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