Description Usage Arguments Value
View source: R/predict_prepare.R
Prepares design matrices and other inputs needed for predictive methods
1 2 3 4 5 | predict_prepare(
x_mat,
index_list,
design = c("cross_all", "cross_random", "differences_random", "differences_plain")
)
|
x_mat |
Original data, i.e. row for each unit. |
index_list |
List of indices to use in the matching:
|
design |
The design matrix form to use. |
list:
x_train
Design matrix for training
x_test
Design matrix for testing
y_train
Training outcome vector
y_test
Test outcome vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.