polymars
object.plot.polymars(x, predictor1, response, predictor2, xx, add = FALSE, n,
xyz = FALSE, contour.polymars = FALSE, xlim, ylim, intercept, ...)
polymars
object, typically the result of polymars
.polymars
model was fit.
For the two dimensional plots, this variable is plotted along the X-axis.polymars
model was fit. For the three
dimensional plots, this variable is plotted along the Y-axis.
See xyz
.n = 100
for 2 dimensional plots and
n = 33
for 3 dimensional plots.
TRUE
) or a perspective plot (FALSE
).
function contour is being made.FALSE
evaluates the object without intercept. The
intercept may also be given any numerical value which overrides the fitted
coefficient from the object. The default is TRUE
.summary.polymars
polymars
object
at n equally spaced points or a 3-d plot of two predictors and response of a
polymars
object. The range of the plot is by default equal to the range of the
particular predictor(s) in the original data, but this can be changed by
xlim = c(from, to)
and
ylim = c(from, to)
.Charles J. Stone, Mark Hansen, Charles Kooperberg, and Young K. Truong. The use of polynomial splines and their tensor products in extended linear modeling (with discussion) (1997). Annals of Statistics, 25, 1371--1470.
data(state)
state.pm <- polymars(state.region, state.x77, knots = 15, classify = TRUE, gcv = 1)
plot(state.pm, 3, 4)
Run the code above in your browser using DataLab