mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
version bump - regression - data overview
This commit is contained in:
parent
f73af16ae1
commit
f249aaa9ab
29 changed files with 2888 additions and 1239 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
26
man/sort_by.Rd
Normal 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"))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue