ddediu / AdhereR

Computation of adherence to medications from Electronic Healthcare Data in R
25 stars 6 forks source link

Various warnings "Please note that 'CMA.FNC' overrides argument ..." per episodes and sliding windows #169

Closed ddediu closed 2 years ago

ddediu commented 2 years ago

E.g.:

d <- med.events[med.events$PATIENT_ID %in% 1:3,];
cmaE <- CMA_per_episode(CMA="CMA9",
                        data=d,
                        ID.colname="PATIENT_ID",
                        event.date.colname="DATE",
                        event.duration.colname="DURATION",
                        event.daily.dose.colname="PERDAY",
                        medication.class.colname="CATEGORY",
                        followup.window.start=-90,
                        observation.window.start=0,
                        observation.window.duration=365,
                        maximum.permissible.gap=60,
                        date.format="%m/%d/%Y");
ddediu commented 2 years ago

Probably fixed by forcing (smartly) arguments.that.should.not.be.defined=NULLin sliding windows and per episodes