overlapping: Testing overlap between old and new policy sample

View source: R/overlapping.R

overlappingR 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.


OPL documentation built on April 4, 2025, 3:09 a.m.