mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-12-16 09:32:10 +01:00
Some checks are pending
pkgdown.yaml / pkgdown (push) Waiting to run
45 lines
1.1 KiB
R
45 lines
1.1 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/baseline_table.R
|
|
\name{create_baseline}
|
|
\alias{create_baseline}
|
|
\title{Create a baseline table}
|
|
\usage{
|
|
create_baseline(
|
|
data,
|
|
...,
|
|
by.var,
|
|
add.p = FALSE,
|
|
add.diff = FALSE,
|
|
add.overall = FALSE,
|
|
theme = c("jama", "lancet", "nejm", "qjecon"),
|
|
detail_level = c("minimal", "extended")
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{data}{data}
|
|
|
|
\item{...}{passed as fun.arg to baseline_table()}
|
|
|
|
\item{by.var}{specify stratification variable}
|
|
|
|
\item{add.p}{add comparison/p-value}
|
|
|
|
\item{add.overall}{add overall column}
|
|
|
|
\item{theme}{set table theme}
|
|
|
|
\item{detail_level}{specify detail level. Either "minimal" or "extended".}
|
|
}
|
|
\value{
|
|
gtsummary table list object
|
|
}
|
|
\description{
|
|
Create a baseline table
|
|
}
|
|
\examples{
|
|
mtcars |> create_baseline(by.var = "gear", add.p = "yes" == "yes")
|
|
mtcars |> create_baseline(by.var = "gear", detail_level = "extended")
|
|
mtcars |> create_baseline(by.var = "gear", detail_level = "extended",type = list(gtsummary::all_dichotomous() ~ "categorical"),theme="nejm")
|
|
|
|
create_baseline(default_parsing(mtcars), by.var = "am", add.p = FALSE, add.overall = FALSE, theme = "lancet")
|
|
}
|