OHDSI / OHDSI/FeatureExtraction

agregating data in temporal-covarate-settings produces NA timeId in covaraitesContinuous

Open
#114 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
74
Forks
63
PR merge metrics
No merged PRs in 30d

Description

tcovset <- createTemporalCovariateSettings(
   useVisitCconceptCount = TRUE, 
   temporalStartDays = c(1, 365), 
   temporalEndDays = c(365, 365*2),
)

tempCov <- getDbCovariateData(
   ...
   ...
   covariateSettings = tcovset, 
   aggregated = TRUE
)

tempCov$covariateContinuous %>% view()

Column timeId is all NA

I can't find why this happens.
I came to find this error when using CohortDiagnostics and I trying to get the temporal characterization of visit counts.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example using createTemporalCovariateSettings and getDbCovariateData with aggregated = TRUE, then inspect covariateContinuous and the generation of its timeId column. Trace the temporal covariate aggregation used for visit concept counts and confirm that timeId is populated rather than entirely NA; the issue does not name a specific file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.