knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
We are going to work with 'lung' dataset from survival
library(AutostatR) library(survival) head(lung)
variables <- c("age", "sex","wt.loss") table1(lung, variables)
table1(lung, variables, y="status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.