textTopicsTest {text} | R Documentation |
Wrapper for topicsTest function from the topics package
Description
Wrapper for topicsTest function from the topics package
Usage
textTopicsTest(
model,
x_variable = NULL,
y_variable = NULL,
controls = c(),
test_method = "default",
p_adjust_method = "fdr",
...
)
Arguments
model |
(list) The trained model |
x_variable |
(string) The x variable name to be predicted, and to be plotted (only needed for regression or correlation) |
y_variable |
(string) The y variable name to be predicted, and to be plotted (only needed for regression or correlation) |
controls |
(vector) The control variables (not supported yet) |
test_method |
(string) The test method to use, either "correlation","t-test", "linear_regression","logistic_regression", or "ridge_regression" |
p_adjust_method |
(character) Method to adjust/correct p-values for multiple comparisons (default = "none"; see also "holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr"). |
... |
Parameter settings from topicsTest in the topics-package. |
Value
A list of the test results, test method, and prediction variable