Calculate Bayesian Smoothing Spline (BSS) for Integers

B1(x)

B2(x)

B4(x)

bss(x, n_basis, first_two = TRUE)

Arguments

x

for bss, an integer vector to calculate the basis expansion for. For B1, B2, B4: a numeric vector between 0 and 1.

n_basis

Number of basis terms to use

first_two

Should the first two BSS terms (linear and quadratic) be included?

Details

Currently this does no linear interpolation and so relies on integer (discrete) inputs.

References

Curtis B. Storlie et al. (2015) Calibration of Computational Models With Categorical Parameters and Correlated Outputs via Bayesian Smoothing Spline ANOVA, Journal of the American Statistical Association, 110:509, 68-82, DOI: 10.1080/01621459.2014.979993