Lenth: Lenth's Plot of Effects

Description Usage Arguments Value Examples

View source: R/Lenth.R

Description

Plot of the factor effects with significance levels based on robust estimation of contrast standard errors.

Usage

1
Lenth(fit)

Arguments

fit

Object of class lm. Fitted model from lm.

Value

The function returns Lenth's plot. Dashed lines correspond to the margin of error (ME) and dotted lines to the simultaneous margin of error (SME).

Examples

1
2
3
4
5
6
7
8
#Example 6.2 Douglas C. Montgomery
#A <- rep(c(-1,1),8)
#B <- rep(c(-1,-1,1,1),4)
#C <- rep(c(rep(-1,4),rep(1,4)),2)
#D <- c(rep(-1,8), rep(1,8))
#rate <- c(45,71,48,65,68,60,80,65,43,100,45,104,75,86,70,96)
#fit <- lm(rate~A*B*C*D)
#Lenth(fit)

ana-vela7/BsMD2 documentation built on Dec. 19, 2021, 2:32 a.m.