Skip to content

Moisture content adjustment when imputing values from on FCT to another FCT #209

Open
@LuciaSegovia

Description

@LuciaSegovia

The general practice when imputing one nutrient value from one FCT to another is adjust the nutrient content to the moisture value in the "original" food composition data.

For example, we are using maize, grain from MAFOODS but there is no value for selenium in MAFOODS. The tool will pick the selenium value from the next closest FCT, in this case it will be KENFCT. We can see that the moisture content for maize, grain in both FCTs are different: the moisture content of maize, grain in MAFOODS is 10.9g while in KENFCT is 13.6g. Therefore, we need to adjust the selenium value to the original water content. We use very simple formula to rescalate:

water_adjustment <- function(y) {
  
  x <- y * (100-WATER.x)/(100-WATER.y)
  
  x
  
}

Where x is the nutrient value that we would like to know (in our example it is the rescalated selenium content in maize, grain), y is the nutrient value that is imputed (in our example it is the selenium value in KENFCT), WATER.x is the water/ moisture content of the food that we want to use (in our example it is the water content of maize, grain in MAFOODS), and WATER.y is the water content of the food used to impute the missing value (in our example it is the water content of maize, grain in KENFCT).

@bgsandan, @spenny-liam, @Gare94, @LouiseAnder This is one of the issues that we discussed on Friday, after the wonderful demo from @spenny-liam :)

Can we integrate that kind of function in the food compo hierarchy?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions