Learn R Programming

SPREDA (version 1.2)

i.spline.x: i_spline basis

Description

Create the i_th splines basis for I_splines basis or C_splines basis

Usage

i.spline.x(xx, tt, i, k, delta = 1e-04, Cs = F)

Value

i.spline.x returns a vector of i_th splines basis for covariate values xx in knots i and degree k

Arguments

xx

values of of covariate

tt

values of knot sequence of the covariate

i

I_th splines basis

k

degree of the spline

delta

the length of the spans to split the range of covariate

Cs

indicator of whether the creation of C_splines basis is needed

Author

Yili Hong

Details

Creation of the i_th splines basis for I_splines basis or C_splines basis

References

Hong. Y., Y. Duan, W. Q. Meeker, D. L. Stanley, and X. Gu (2014), Statistical Methods for Degradation Data with Dynamic Covariates Information and an Application to Outdoor Weathering Data, Technometrics, DOI: 10.1080/00401706.2014.915891.

See Also

m.spline.x

Examples

Run this code
i.spline.x(xx=runif(20), tt=c(0, 0, 0, 0.3, 0.6, 0.8, 1, 1, 1 ), i=3, k=3, 
delta = 1e-04, Cs = FALSE)
i.spline.x(xx=runif(20), tt=c(0, 0, 0, 0.3, 0.6, 0.8, 1, 1, 1 ), i=3, k=3, 
delta = 1e-04, Cs = TRUE)

Run the code above in your browser using DataLab