ohdsi-studies / LegendT2dm

9 stars 15 forks source link

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 2 years ago

lofung commented 2 years ago

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 commented 2 years ago

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