test_that("dssClogit works", {
datashield.aggregate(opals["server1"], as.symbol('partialData("infert")'))
clogit.model <- dssClogit(formula = case ~ spontaneous + induced + stratum, data='infert', datasources = opals["server1"])
data('infert', envir = environment())
library(survival)
clogit.local <- survival::clogit(case ~ spontaneous + induced + stratum, data=infert)
expect_identical(clogit.local$coefficients , clogit.model$server1$coefficients)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.