sign_test | R Documentation |
Sign test for given median
sign_test(d, x, med0 = 0, tol = 1e-06)
d |
a data frame |
x |
unquoted name of column to test |
med0 |
null median (defaults to zero) |
tol |
(default 1e-6) how close a data value has to be to the null median to be considered equal to null median (and discarded) |
list of two elements: table of values above and below null median, data frame of 1-sided and 2-sided P-values
Ken Butler, butler@utsc.utoronto.ca
d=data.frame(z=1:10)
sign_test(d,z,3.5)
sign_test(d,z,3)
sign_test(datasets::mtcars, mpg, 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.