R/2_4_1_textPredictTextTrained.R
textPredictTest.Rd
If y2 is provided a bootstrapped procedure is used to compare the correlations between y1 and yhat1 versus y2 and yhat2. This is achieved by creating two distributions of correlations using bootstrapping; and then finally compute the distributions overlap.
textPredictTest(
y1,
y2,
yhat1,
yhat2,
method = "t-test",
statistic = "correlation",
paired = TRUE,
event_level = "first",
bootstraps_times = 1000,
seed = 6134,
...
)
The observed scores (i.e., what was used to predict when training a model).
The second observed scores (default = NULL; i.e., for when comparing models that are predicting different outcomes. In this case a bootstrap procedure is used to create two distributions of correlations that are compared (see description above).
The predicted scores from model 1.
The predicted scores from model 2 that will be compared with model 1.
Set "t-test" if comparing predictions from models that predict the SAME outcome. Set "bootstrap" if comparing predictions from models that predict DIFFERENT outcomes or comparison from logistic regression computing AUC distributions.
Character ("correlation", "auc") describing statistic to be compared in bootstrapping.
Paired test or not in stats::t.test (default TRUE).
Character "first" or "second" for computing the auc in the bootstrap.
Number of bootstraps (when providing y2).
Set seed.
Settings from stats::t.test or overlapping::overlap (e.g., plot = TRUE).
Comparison of correlations either a t-test or the overlap of a bootstrapped procedure (see $OV).
see textTrain
textPredict