bss: Calculate Bayesian Smoothing Spline (BSS) for Integers

View source: R/bss.R

bssR Documentation

Calculate Bayesian Smoothing Spline (BSS) for Integers

Description

Calculate Bayesian Smoothing Spline (BSS) for Integers

Usage

B1(x)

B2(x)

B4(x)

bss(x, n_basis, first_two = TRUE, from = min(x), to = max(x))

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?

from, to

The min and max values that x can attain.

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


eheinzen/gibbs.utils documentation built on Sept. 27, 2024, 9:03 p.m.