tee: Auxiliary functions for equation 9 of the supplement

Description Usage Arguments Details Author(s) References See Also Examples

Description

Returns a vector whose elements are the “distances” from a point to the observations and code run points (tee()); and basis functions for use in Ez.eqn9.supp()

Usage

1
2
tee(x, theta, D1, D2, phi)
h.fun(x, theta, H1, H2, phi)

Arguments

x

Point from which distances are calculated

theta

Value of parameters

D1,D2

Design matrices of code run points and field observation points respectively (tee())

H1,H2

Basis functions for eta and model inadequacy term respectively (h.fun())

phi

Hyperparameters

Details

Equation 9 of the supplement is identical to equation 10 of KOH2001.

Function h.fun() returns the first of the subsidiary equations in equation 9 of the supplement and function tee() returns the second (NB: do not confuse this with functions t1bar() and t2bar() which are internal to EK.eqn10.supp())

Author(s)

Robin K. S. Hankin

References

See Also

Ez.eqn9.supp

Examples

1
2
3
4
5
6
7
8
9
data(toys)
tee(x=x.toy, theta=theta.toy, D1=D1.toy, D2=D2.toy, phi=phi.toy)


# Now some vectorized examples:
jj <- rbind(x.toy , x.toy , x.toy+0.01,x.toy+1,x.toy*10)

tee(x=jj, theta=theta.toy, D1=D1.toy, D2=D2.toy, phi=phi.toy)
h.fun(x=jj, theta=theta.toy, H1=H1.toy, H2=H2.toy, phi=phi.toy)

calibrator documentation built on May 1, 2019, 9:17 p.m.