overlapping | R Documentation |
Function to perform overlap analysis between train and test datasets. The function performs principal component analysis (PCA) on the covariates for both sets and calculates the Kolmogorov-Smirnov test for overlap.
overlapping(train_data, test_data, x)
train_data |
Train Dataset indicating the old policy sample. |
test_data |
Test Dataset indicating the new policy sample. |
x |
Vector of predictor variables. |
The function prints the superposition graph and the results of the Kolmogorov-Smirnov test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.