Displaying 1 result from an estimated 1 matches for "regsurfacedemo".
2010 Oct 11
1
Is there a regression surface demo?
...to write my own, but it has some
issues (non functioning code start below), and I figured before I
tried to work out the kinks, I would ask for the list's feedback.
Any comments or suggestions (about functions or preferred idioms for
what I tried below, or...) are greatly appreciated.
Josh
RegSurfaceDemo <- function(formula, data, xlim, ylim, zlim,
resolution = 100) {
require(rgl)
## This cannot be the proper way to extract variable names from formula
vars <- rownames(attr(terms(formula), "factors"))
## if no limits set, make them nearest integer...