R Code: Validation Studies