calc_table_one_tests: Return variables from table one to look into

View source: R/calc-table-one-tests.R

calc_table_one_testsR Documentation

Return variables from table one to look into

Description

Given the results of the create_tidy_table_one this will give you a list with the variable names for those that were, for example, non-normal by Shapiro-Wilkes test or that had unequal variance by Barlett's test.

Usage

calc_table_one_tests(table_one)

Arguments

table_one

A tibble result from create_tidy_table_one

Value

A list

Examples

library(dplyr)

tab1 <- create_tidy_table_one(data = pbc_mayo,
                              strata = "trt",
                              .vars = c("time",
                                        "status",
                                        "trt",
                                        "age",
                                        "sex",
                                        "ascites",
                                        "hepato",
                                        "spiders",
                                        "edema",
                                        "bili",
                                        "chol",
                                        "albumin",
                                        "copper",
                                        "alk_phos",
                                        "ast",
                                        "trig",
                                        "platelet",
                                        "protime",
                                        "stage"))

dplyr::glimpse(tab1)

calc_table_one_tests(tab1)

emilelatour/tidytableone documentation built on Jan. 6, 2025, 9:20 a.m.