Description Usage Arguments Value References Examples
View source: R/nonparametric.R
Confidence functions for the median of a continuous distribution based on the sign test.
1 | signtest.conf(x, plot = TRUE, conf.level = 0.95)
|
x |
a vector of observations |
plot |
whether to plot the confidence density and curve |
conf.level |
the confidence level for the confidence interval indicated on the confidence curve |
A list containing the confidence functions pconf, dconf, cconf, and qconf for the median, as well as the P-curve and S-curve.
Tore Schweder and Nils Lid Hjort. Confidence, likelihood, probability. Vol. 41. Cambridge University Press, 2016.
Myles Hollander, Douglas A. Wolfe, and Eric Chicken. Nonparametric Statistical Methods. Vol. 751. John Wiley & Sons, 2013.
1 2 3 4 5 6 7 | data(dietstudy)
x <- dietstudy$weightchange[dietstudy$diet == 'Low Carb']
y <- dietstudy$weightchange[dietstudy$diet == 'Low Fat']
lc.signtest.conf <- signtest.conf(x)
lf.signtest.conf <- signtest.conf(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.