i.spline.x {SPREDA}R Documentation

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)

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

Details

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

Value

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

Author(s)

Yili Hong

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

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)


[Package SPREDA version 1.1 Index]