Estimated Response
If the data is empty, the average will be NaN and thus an IllegalArgumentException will occur.
Parameters
data
the data must not be empty.
Parameters
name
the name of the response that was estimated
average
the sample average of the sample
variance
the sample variance of the sample
count
the number of observations in the sample