getNormalizationTerm: This function returns the normalizing factor, based upon the...

Description Usage Arguments Details Value Examples

Description

This function returns the normalizing factor, based upon the input settings

Usage

1
getNormalizationTerm(dates, flags, defaultTime = 1)

Arguments

dates

The dates of all visits recorded in the record

flags

The R dataframe that contains all feature/model flags specified in settings.R. - specifies which sort of normalization to perform

defaultTime

Value by which to normalize patients who only have a single visit, so cannot say what the follow-up time is (=0 –> undefined). Set default time as 1; as if spreading single observation over an entire year or 1 month (depending on settings)

Details

Depending upon the input settings, will return the normalizing term for the feature values. Some normalization settings depend upon the specific feature type; these are addressed within the individual feature types. This is a helper function for getPatientData

Value

The value by which to divide term counts

Examples

1
2
3
4
5
6
## Not run: 

 timeDiff <- getNormalizationTerm(dates, flags)


## End(Not run)

OHDSI/Aphrodite documentation built on Sept. 18, 2020, 10:26 p.m.