I’m struggling with using CohortMethod pacakges in R and when I run getDbCohortMethodData() function, foutunately it runs.
But the point is the result of that function show that it has no covariates like below.
Covariates:
Number of covariates: NA
Number of non-zero covariate values: NA
Before I run getDbCohortMethodData(), I set covariates with run createDefaultCovariateSettings() and when I check the concept ID of covariates that I will exclude it shows it.
I don’t know what is the problems and how to solve this one. Please help me
Hmmm, confusing indeed! Any messages that pop up when running getDbCohortMethodData()? Could you turn on a logger (e.g. using addDefaultFileLogger()) to capture the log before running getDbCohortMethodData()?
@schuemie When I run getDbCohortMethodData(), there’s a warining meassages below.
Warning: Removing drugs from covariates, but not sure if exposure IDs are valid drug concepts
Warning: This function is deprecated. Use ‘render’ instead.
Warning: This function is deprecated. Use ‘translate’ instead.
That ‘non-UTF-8’ message was also reported here, and seems to be related to the character set being used. Could you provide a bit more context around that message, so I know what is throwing it?
It is weird that the number of covariates is reported to be NA, not 0. Could you see if there are any covariates?: