powered by
Finds sample means and variances for a matrix of observations when replicates are present
uniqueSummary(X,Y)
A list with the following components:
the number of reps for each unique design point
the input matrix with duplicate inputs removed
sample means corresponding to each unique input
sample variances corresponding to each unique input
matrix of inputs
matrix of outputs corresponding to x
Garrett M. Dancik dancikg@easternct.edu
uniqueSummary calculates sample means and variances for each unique input. For input values with no replicates, the sample variance will be `NA'. This function is used by mlegp to fit a GP to a collection of means observations at each design point.
uniqueSummary
mlegp
https://github.com/gdancik/mlegp/
x = c(1,1,2,2,3) y = x + rnorm(length(x)) uniqueSummary(x,y)
Run the code above in your browser using DataLab