Nothing
gender <- factor(c( "male","male","male","male","female","female",
"female","male","male","male"))
test_that("goodnessOfFitTest example works", {
expect_s3_class(goodnessOfFitTest(gender), "gofTest")
expect_warning(goodnessOfFitTest(gender, p=c(.4,.6)), "chi-squared approximation")
expect_equal(
goodnessOfFitTest(gender)$p.value,
chisq.test(table(gender))$p.value
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.