Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iebaltab: onerow option generates error if non-varying variable is included even when there is no missingness #369

Open
jmseiden opened this issue Nov 26, 2024 · 0 comments

Comments

@jmseiden
Copy link

When using the onerow option, iebaltab generates the error "Option onerow may only be used if the number of observations with non-missing values are the same in all groups across all balance variables." even when the number of observations are non-missing for all variables if a non-varying variable is included.

Here is a reproducible example.

clear all
sysuse auto

gen constant_var = 1 // Create a variable that is the same for all observations

sum foreign weight length constant_var //All variables have the same number of observations

iebaltab weight length, groupvar(foreign) onerow //works fine

iebaltab weight length constant_var , groupvar(foreign) onerow //generates an error

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant