data(Boston, package="MASS")
# Sign test
# H0: pi = pi0
# H1: pi <> pi0
binom.test(sum(Boston$chas==1), length(Boston$chas))
prop.test(sum(Boston$chas==1), length(Boston$chas))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.