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

Warning: All coefficients (except maybe the intercept) are zero. Either the covariates are completely uninformative or completely predictive of the treatment. Did you remember to exclude the treatment variables from the covariates? #16

Open
lofung opened this issue Feb 18, 2022 · 1 comment

Comments

@lofung
Copy link

lofung commented Feb 18, 2022

Hello Marc,

When running assessPropensityModels(...), there is such an error:

Warning: All coefficients (except maybe the intercept) are zero. Either the covariates are completely uninformative or completely predictive of the treatment. Did you remember to exclude the treatment variables from the covariates?

It seems there is obvious we can do to fix. What is wrong?

@lofung
Copy link
Author

lofung commented Feb 18, 2022

The error seems to stop showing up by running assessPropensityModels(...) twice. (It looks like it also stopped trying to connect to andromeda or something). Not sure if it is 'correct' or wrong.

On the second time of running

it says Disconnected Andromeda. This data object can no longer be used, which also pops up during the first run. And then the script looks running

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