effect.fit {pda} | R Documentation |
Get fit effects and plot beside residuals. Visually assess MS as spread of effects. See Emerson chapter in Hoaglin, Mosteller and Tukey (1991, ch. 8C) Fundamentals of Exploratory Analysis of Variance (Wiley).
effect.fit(object, ...) ## Default S3 method: effect.fit(object, data, factors, adjust=TRUE, influence=FALSE, terms.fit, ...) ## S3 method for class 'listof': effect.fit(object, data, factors, terms.fit, stratum, ...) effect.plot(object, effect, adjust=TRUE, boxplot.min=10, jitter=0.1, width=jitter, xlim, ylim, xaxt, xlab, ylab, ...)
object |
linear model (lm) fit |
data |
Data used in object fit |
factors |
Character string of factor names |
influence |
Include influence if TRUE |
terms.fit |
Character string of terms in object fit |
stratum |
Identifier of stratum to examine |
effect |
effect fit of object |
adjust |
adjust effects so that the average of squared effects is the mean squarefor that term |
boxplot.min |
use boxplot instead if more than this many values |
jitter |
uniform sideways jitter of plotted points (default=.1) |
width |
width of boxplot (default=jitter) |
xlim |
Plot parameters |
ylim |
Plot parameters |
xaxt |
Plot parameters |
xlab |
Plot parameters |
ylab |
Plot parameters |
... |
Plot parameters |
list of effects
data(ToothGrowth) ToothGrowth$dose = ordered(ToothGrowth$dose) effect.plot(lm(len~dose*supp, ToothGrowth))