The function to test the lda model
ldaTest(
model,
preds,
data,
pred_var,
group_var = NULL,
control_vars = c(),
test_method,
p_adjust_method = "fdr",
seed = 42,
load_dir = NULL,
save_dir = "./results"
)
(list) The trained model
(tibble) The predictions
(tibble) The data to test on
(string) The variable to be predicted (only needed for regression or correlation)
(string) The variable to group by (only needed for t-test)
(vector) The control variables
(string) The test method to use, either "correlation","t-test", "linear_regression","logistic_regression", or "ridge_regression"
(character) Method to adjust/correct p-values for multiple comparisons (default = "none"; see also "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr").
(integer) The seed to set for reproducibility
(string) The directory to load the test from, if NULL, the test will not be loaded
(string) The directory to save the test, if NULL, the test will not be saved
A list of the test results, test method, and prediction variable