sm.density.compare(x, group, h, model = "none", ...)
"none"
which restricts comparison to
plotting only. The alternative value "equal"
can produce a
bootstrap hypothesis test of equality and the display of an appropriate
reference band.
sm.options
function,
through a mechanism which limits their effect only to this call of the
function. Those specifically relevant for this function are the following:
method
, df
, band
, test
, nboot
,
plus those controlling graphical display (unless display="none"
is set);
see the documentation of sm.options
for their description.
The parameter nboot
controls teh number of permutations used in the
permutation test.
model
is set to "none"
, nothing is returned. When
"model"
is set to "equal"
, a list containing the smoothing
parameter and the p-value of the test is returned. When band
takes the value TRUE
, and there are only two groups to compare,
the list contains in addition the upper and lower end-points of the reference
band for equality.
display="none"
.sm.density
, sm.ancova
, sm.options
y <- rnorm(100)
g <- rep(1:2, rep(50,2))
sm.density.compare(y, g, model="equal")
Run the code above in your browser using DataLab