OHDSI / OHDSI/FeatureExtraction
agregating data in temporal-covarate-settings produces NA timeId in covaraitesContinuous
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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