View source: R/wrapper_t_ks_test.R
wrapper.t_ks_test | R Documentation |
A wrapper function that performs a one-versus the rest t-test & ks-test
wrapper.t_ks_test( df, factor, factor_level, continuous_feature, verbose = FALSE )
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 |
|
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 |
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
## Not run: wrapper.t_ks_test(df=A_DATA_TBL_2 , factor = DIABETES , factor_level = 1, 'Age') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.