I use the FeatureExtraction package (especially temporal feature function) for constructing covariates not only before the index date but after the index date. The covariates with the timeID are useful for tracking how many patients were using that covariate.
but I can't find the options restricting the covariate period in each patient.
How can I restrict the covariates from only the in-cohort period (from cohort_start_date to cohort_end_date)?
For example, I want to get the drug_expousure covariates from each patient's inpatient period. To my knowledge, in createTemporalCovariateSettings, I can define the same end day only adding to cohort_start_date for all patients.
As you know, we can restrict the time period for each patient after getting the whole covariates in R. However, I think it is inefficient.
If I have something missed or if you have any other options or comments, please let me know.
Hi,
I use the FeatureExtraction package (especially temporal feature function) for constructing covariates not only before the index date but after the index date. The covariates with the timeID are useful for tracking how many patients were using that covariate.
but I can't find the options restricting the covariate period in each patient. How can I restrict the covariates from only the in-cohort period (from cohort_start_date to cohort_end_date)?
For example, I want to get the drug_expousure covariates from each patient's inpatient period. To my knowledge, in createTemporalCovariateSettings, I can define the same end day only adding to cohort_start_date for all patients.
As you know, we can restrict the time period for each patient after getting the whole covariates in R. However, I think it is inefficient.
If I have something missed or if you have any other options or comments, please let me know.
Best wishes, Chungsoo