sm.ancova(x, y, group, h, model = "none", h.alpha = NA, weights=NA, covar = diag(1/weights), ...)
sm.options
will be applied.
"none"
, "equal"
and "parallel"
are possible.
sm.regression
for a full description.
y
can be estimated by the user, externally to sm.ancova
,
and passed through this argument. This is used in the hypothesis tests
but not in the construction of the reference band for comparing two groups
(and so graphics are disabled in this case).
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:
display
,
ngrid
,
eval.points
,
xlab
,
ylab
;
see the documentation of sm.options
for their description.
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.options
x <- 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 DataCamp Workspace