mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 01:49:39 +02:00
exportng regression_table_create function
This commit is contained in:
parent
a4ff749824
commit
a82a5c6378
3 changed files with 43 additions and 0 deletions
|
@ -100,6 +100,7 @@ export(regression_model_list)
|
|||
export(regression_model_uv)
|
||||
export(regression_model_uv_list)
|
||||
export(regression_table)
|
||||
export(regression_table_create)
|
||||
export(remove_empty_attr)
|
||||
export(remove_empty_cols)
|
||||
export(remove_nested_list)
|
||||
|
|
|
@ -108,6 +108,17 @@ regression_table <- function(x, ...) {
|
|||
}
|
||||
}
|
||||
|
||||
#' Create regression summary table
|
||||
#'
|
||||
#' @param x (list of) regression model
|
||||
#' @param ... ignored for now
|
||||
#' @param args.list args.list for the summary function
|
||||
#' @param fun table summary function. Default is "gtsummary::tbl_regression"
|
||||
#' @param theme summary table theme
|
||||
#'
|
||||
#' @returns gtsummary list object
|
||||
#' @export
|
||||
#'
|
||||
regression_table_create <- function(x, ..., args.list = NULL, fun = "gtsummary::tbl_regression", theme = c("jama", "lancet", "nejm", "qjecon")) {
|
||||
# Stripping custom class
|
||||
class(x) <- class(x)[class(x) != "freesearchr_model"]
|
||||
|
|
31
man/regression_table_create.Rd
Normal file
31
man/regression_table_create.Rd
Normal file
|
@ -0,0 +1,31 @@
|
|||
% Generated by roxygen2: do not edit by hand
|
||||
% Please edit documentation in R/regression_table.R
|
||||
\name{regression_table_create}
|
||||
\alias{regression_table_create}
|
||||
\title{Create regression summary table}
|
||||
\usage{
|
||||
regression_table_create(
|
||||
x,
|
||||
...,
|
||||
args.list = NULL,
|
||||
fun = "gtsummary::tbl_regression",
|
||||
theme = c("jama", "lancet", "nejm", "qjecon")
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{x}{(list of) regression model}
|
||||
|
||||
\item{...}{ignored for now}
|
||||
|
||||
\item{args.list}{args.list for the summary function}
|
||||
|
||||
\item{fun}{table summary function. Default is "gtsummary::tbl_regression"}
|
||||
|
||||
\item{theme}{summary table theme}
|
||||
}
|
||||
\value{
|
||||
gtsummary list object
|
||||
}
|
||||
\description{
|
||||
Create regression summary table
|
||||
}
|
Loading…
Add table
Reference in a new issue