sm.density.compare(x, group, h=NA, model="none", test=TRUE,
nboot=100, monitor=TRUE, ...)
"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
or graphical parameters.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.sm.density
, sm.ancova
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