myTabOne | R Documentation |
basis from package tableone
myTabOne(dat = dat, strata = "Var.Grp")
JuG
dat <- data.frame(Var.Gr = gl(n = 2, k = 10),
Var.A = rnorm(20),
Var.B = factor(x = rbinom(n = 20, size = 1, .2)),
Var.C = runif(n = 20,1,20))
dat$Var.A[sample(size = 4, 1:20)]<- NA
dat$Var.B[sample(size = 3, 1:20)]<- NA
pp2 <- myTabOne(dat = dat, strata = "Var.Gr")
myTabOne(dat=lung[,-2:-1], strata = "status")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.