sm.ancova(x, y, group, h, model="none", band=TRUE, test=TRUE,
h.alpha=2 * diff(range(x))/length(x),
weights = as.integer(rep(1, length(x))), ...)"none", "equal" and "parallel" are possible.sm.options function, through
a mechanism which limits their effect only to this call of the function;
those relevant for this function are the following:"none" will cause a plot of the curves,
distinguished by line type, to be produced.display="none"Young, S.G. and Bowman, A.W. (1995). Nonparametric analysis of covariance. Biometrics 51, 920--931.
Bowman, A.W. and Young, S.G. (1996). Graphical comparison of nonparametric curves. Applied Statistics 45, 83--98.
sm.regression, sm.density.compare, sm.optionsx <- runif(50, 0, 1)
y <- 4*sin(6*x) + rnorm(50)
g <- rbinom(50, 1, 0.5)
sm.ancova(x, y, g, h = 0.15, model = "equal")Run the code above in your browser using DataLab