ard_stats_t_test_onesample {cardx}R Documentation

ARD one-sample t-test

Description

Analysis results data for one-sample t-tests. Result may be stratified by including the by argument.

Usage

ard_stats_t_test_onesample(
  data,
  variables,
  by = dplyr::group_vars(data),
  conf.level = 0.95,
  ...
)

Arguments

data

(data.frame)
a data frame. See below for details.

variables

(tidy-select)
column names to be analyzed. Independent t-tests will be computed for each variable.

by

(tidy-select)
optional column name to stratify results by.

conf.level

(scalar numeric)
confidence level for confidence interval. Default is 0.95.

...

arguments passed to t.test()

Value

ARD data frame

Examples


cards::ADSL |>
  ard_stats_t_test_onesample(by = ARM, variables = AGE)


[Package cardx version 0.2.0 Index]