survival19 is a package dealing with the stratified Cox proportional hazard model. It contains two main functions:
```{r setup} devtools::install_github("XuemeiDing/survival19")
## Usage
```{r}
library(survival19)
set.seed(2019)
testdata = generate_data(F_pre = c("a", "b", "c", "d"), gamma = rep(1, 4), order = FALSE)
stratified_cox(testdata$delta, testdata$z, testdata$facility, testdata$time, testdata$num_facility, tol= 1.0e-6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.