check_and_sanitize_prediction: Run some checks on the prediction in normL2_indiv

View source: R/normIndiv.R

check_and_sanitize_predictionR Documentation

Run some checks on the prediction in normL2_indiv

Description

If prediction is NA for observables which are not observed in a condition, they don't matter. In this case, replace NA by 0, such that the error model can be evaluated.

Usage

check_and_sanitize_prediction(prediction, data, cn, FLAGNaNInfwarnings)

Arguments

prediction

prediction for condition cn

data

datalist

cn

condition name for which the prediction was made

FLAGNaNInfwarnings

print warnings?

Value

the prediction with harmless NA's replaced by 0

Author(s)

Daniel Lill (daniel.lill@physik.uni-freiburg.de)


dkaschek/dMod documentation built on April 23, 2024, 5:18 p.m.