context('sterms.inner')
test_that('sterms.inner parses Surv formula', {
l <- c('time', 'status', 'x', 'y')
expect_identical(
sterms.inner(Surv(time, status) ~ x + y),
l
)
expect_identical(
sterms.inner(Surv(time, status == 1) ~ x + y),
l
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.