********** Covariates ********** The covariates allow to adjust the prediction thanks to some information on the patient. Some specific covariates are: - Sex - Age - Dose Sex --- Sex is represented as a floating point value in the range [0,1]. The rationale is that it allows to have continuous formula taking advantage of the mean value. If we do not know the person's sex, then how would we choose if he/she is supposed to be a man or a woman? Using a floating point allows to set the value to 0.5 if that information is missing. Therefore the prediction will correspond to an individual being an intermediate between a man and a woman. Sex is considered as a special covariate in the sense that it could be retrieved from administrative data about the patient. The following code illustrates a sex covariate. The only mandatory fields are the `covariateType` (`sex`), and the `dataType` (`double`). .. code-block:: xml sex Sex Sexe Sex of the patient Sexe du patient sex double direct 0.5 Sex should be in the range [0,1]. sex double = 0.0) && (sex <= 1.0)); ]]> Age --- The age of the patient corresponds to a special covariate, because of two factors: 1. As for the sex, it can be retrieved from administrative data, that is the birthdate. 2. In the drug models it can be used in years, months, weeks or days. In a drug model, when an age is required, it shall be using the special type to specify if it is ageInYears, ageInMonths, ageInWeeks or ageInDays. A default value has to be indicated as well. In the patient data that will be scanned to get the covariates used for calculation, there are two means of specifiying the age. It can be of the same type as the drug model covariates, or it can come from a birthdate. In case the patient data contains the birthdate, it should have the id **birthdate** Tucuxi is then able to calculate the age based on the birthdate, following the granularity defined in the drug model covariate. It will therefore be automatically updated by the software. For instance, in a model of gentamicin for neo-nates, the ageInDays will be updated every day automatically. Here is an example of an age covariate in a drug model file: .. code-block:: xml age Age Age Age of the patient, in years Âge du patient, en années y ageInYears double direct 50 age double = 20) && (age <= 88)); ]]> Dose ---- A specific type of covariate allows to let the software automatically handle the current dose. The current dose is then available as any other covariate. The unit shall be a weight, as the software has to translate the intake dose to the dose covariate.