uniqueSummary: Summary of outputs for each unique input

uniqueSummaryR Documentation

Summary of outputs for each unique input

Description

Finds sample means and variances for a matrix of observations when replicates are present

Usage

uniqueSummary(X,Y)

Arguments

X

matrix of inputs

Y

matrix of outputs corresponding to x

Details

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.

Value

A list with the following components:

reps

the number of reps for each unique design point

uniqueX

the input matrix with duplicate inputs removed

uniqueMeans

sample means corresponding to each unique input

uniqueVar

sample variances corresponding to each unique input

Author(s)

Garrett M. Dancik dancikg@easternct.edu

References

https://github.com/gdancik/mlegp/

Examples

x = c(1,1,2,2,3)
y = x + rnorm(length(x))
uniqueSummary(x,y)


mlegp documentation built on March 18, 2022, 5:29 p.m.