
Wrapper for topicsTest function from the topics package
Source:R/7_2_textTopicsAnalysis.R
textTopicsTest.Rd
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.