Skip to content

Improve error message with no variation in the treatment var #374

@kbjarkefur

Description

@kbjarkefur

Issue reported from user by email:

I keep receiving the error code “option test_pair_codes() required”. I have tried running the command in many different ways, including the simplest possible specification where I simply run “iebaltab `balvars’, groupvar(treatment)” and get this error no matter which options I do or do not specify.

After investigation:

It was a coding error on my end – there was no variation in treatment status at baseline, the period at which I was testing for balance. Thanks for your help, and sorry to bother you with what turned out to be a silly mistake on my end!


While this is not an error that risk creating incorrect results, the command should test for this and provide a more helpful error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    minor bugBug unlikely to lead to incorrect analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions