overlapping {OPL} | R Documentation |
Testing overlap between old and new policy sample
Description
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.
Usage
overlapping(train_data, test_data, x)
Arguments
train_data |
Train Dataset indicating the old policy sample. |
test_data |
Test Dataset indicating the new policy sample. |
x |
Vector of predictor variables. |
Value
The function prints the superposition graph and the results of the Kolmogorov-Smirnov test.
[Package OPL version 1.0.2 Index]