wrapper.t_ks_test: t-test / ks-test wrapper

View source: R/wrapper_t_ks_test.R

wrapper.t_ks_testR Documentation

t-test / ks-test wrapper

Description

A wrapper function that performs a one-versus the rest t-test & ks-test

Usage

wrapper.t_ks_test(
  df,
  factor,
  factor_level,
  continuous_feature,
  verbose = FALSE
)

Arguments

df

a tibble - data-frame or connection

factor

a categorical variable in df ; note in SQLlite there is no factor variable but the user thinks of this variable as a factor

factor_level
  • sets the "first" class in a one-versus-rest t.test and ks.test analysis

verbose

was useful in creating the function to identify variables causing errors, and create output for those types of cases, set to FALSE by default

continuous_feature'

represented by a character string of the feature name to perform t.test and ks.test on

Value

A row-tibble with columns: Feature, mean_diff_est, ttest.pvalue, mean_Target, mean_Control, kstest.pvalue, N_Target, N_Control, conf.low, conf.high, statistic, sd_Target, sd_Control, parameter, method, alternative

Examples

## Not run: 
wrapper.t_ks_test(df=A_DATA_TBL_2 ,
                 factor = DIABETES ,
                 factor_level = 1,
                 'Age')

## End(Not run)


jkylearmstrong/MyExamplePackage documentation built on April 15, 2022, 1:14 a.m.