version bump - regression - data overview

This commit is contained in:
Andreas Gammelgaard Damsbo 2025-04-02 11:31:04 +02:00
commit f249aaa9ab
No known key found for this signature in database
29 changed files with 2888 additions and 1239 deletions

View file

@ -1,16 +0,0 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correlations-module.R
\name{cor_demo_app}
\alias{cor_demo_app}
\title{Correlations plot demo app}
\usage{
cor_demo_app()
}
\description{
Correlations plot demo app
}
\examples{
\dontrun{
cor_demo_app()
}
}

View file

@ -4,7 +4,14 @@
\alias{create_baseline}
\title{Create a baseline table}
\usage{
create_baseline(data, ..., by.var, add.p = FALSE, add.overall = FALSE)
create_baseline(
data,
...,
by.var,
add.p = FALSE,
add.overall = FALSE,
theme = c("jama", "lancet", "nejm", "qjecon")
)
}
\arguments{
\item{data}{data}
@ -24,5 +31,5 @@ gtsummary table list object
Create a baseline table
}
\examples{
mtcars |> create_baseline(by.var = "gear", add.p="yes"=="yes")
mtcars |> create_baseline(by.var = "gear", add.p = "yes" == "yes")
}

View file

@ -36,7 +36,8 @@ gtsummary::trial |>
formula.str = "{outcome.str}~.",
args.list = NULL
) |>
regression_table() |> plot()
regression_table() |>
plot()
gtsummary::trial |>
regression_model(
outcome.str = "trt",
@ -73,7 +74,7 @@ list(
}) |>
purrr::map(regression_table) |>
tbl_merge()
}
}
regression_table <- function(x, ...) {
UseMethod("regression_table")
}

26
man/sort_by.Rd Normal file
View file

@ -0,0 +1,26 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{sort_by}
\alias{sort_by}
\title{Drop-in replacement for the base::sort_by with option to remove NAs}
\usage{
sort_by(x, y, na.rm = FALSE, ...)
}
\arguments{
\item{x}{x}
\item{y}{y}
\item{na.rm}{remove NAs}
\item{...}{passed to base_sort_by}
}
\value{
vector
}
\description{
Drop-in replacement for the base::sort_by with option to remove NAs
}
\examples{
sort_by(c("Multivariable", "Univariable"),c("Univariable","Minimal","Multivariable"))
}