loess
smooth for the graph, along with
a loess smooth from the plot of the fitted values on $u$.mmps(object,vars=~.,fitted=TRUE,layout=NULL,ask,...)
## S3 method for class 'lm':
mmp(object, u , mean = TRUE, sd = FALSE,
xlab = deparse(substitute(u)), degree = 1, span = 2/3,key="topleft",
lineColors = c("blue", "red"), ...)
## S3 method for class 'glm':
mmp(object, u, mean = TRUE, sd = FALSE,
xlab = deparse(substitute(u)), degree = 1, span = 2/3,key="topleft",
lineColors = c("blue", "red"), ...)
predict
method defined.~.
, which specifies that all the terms in
formula(object
will be used. c(2,3)
means two rows and three columns.mmps
to mmp
and
then to plot
.
Users should generally use mmps
.predict(object)
. Can be any other
vector of length equal to the number of observations in the object.loess
. The
usual default for loess
is 2, but the default here is 1.loess
.mmp
draws one marginal model plot. mmps
draws all marginal model plots,
versus each of the terms in the model and versus fitted values. mmps
should not be used if some of the terms in the model are factors or
interactions.loess
, plot
data(ufcwc)
c1 <- lm(Height ~ Dbh, ufcwc)
mmp(c1, ufcwc$Dbh, xlab="Diameter, Dbh", lineColors=c("black", "black"))
mmps(c1)
Run the code above in your browser using DataLab