Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

halfnorm

This function makes a half normal plot of the elements of the vector called effects


Description

This function makes a half normal plot of the elements of the vector called effects

Usage

halfnorm(effects, labs, alpha = 0.05, refline = "TRUE")

Arguments

effects

input - vector of effects to be plotted

labs

input - vector of labels of the effects to be plotted

alpha

input - alpha level for labeling of significant effects using Lenth statistic

refline

input - logical variable that indicates whether a reference line is added to the plot (default is "TRUE")

Author(s)

John Lawson

Examples

# Example Separate Normal plots of whole and split plot effects from an unreplicated split-plot 
data(plasma)
sol<-lm(y~A*B*C*D*E,data=plasma)
# get whole plot effects and split plot effects
effects<-coef(sol)
effects<-effects[c(2:32)]
Wpeffects<-effects[c(1:4, 6:11, 16:19, 26)]
Speffects<-effects[c(5,12:15,20:25,27:31)]

#make separate half normal plots
halfnorm(Wpeffects,names(Wpeffects),alpha=.10)
halfnorm(Speffects,names(Speffects),alpha=.05)

daewr

Design and Analysis of Experiments with R

v1.2-7
GPL-2
Authors
John Lawson [aut, cre], Gerhard Krennrich [aut]
Initial release
2021-2-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.