View source: R/7_2_textTopicsAnalysis.R
textTopicsTest | R Documentation |
Wrapper for topicsTest function from the topics package
textTopicsTest(
model,
x_variable = NULL,
y_variable = NULL,
controls = c(),
test_method = "default",
p_adjust_method = "fdr",
...
)
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. |
A list of the test results, test method, and prediction variable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.