Learn R Programming

SPREDA (version 1.2)

m.spline.x: M_splines basis

Description

Creation of M_splines basis

Usage

m.spline.x(x, tt, i, k)

Value

m.spline.x returns a value of M_spline basis value for x in i_th spline degree of k

Arguments

x

a value of the covariate

tt

values of knot sequence of the covariate

i

the i_th M_spline function

k

degree of the spline

Author

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

i.spline.x

Examples

Run this code
m.spline.x(x=0.3, tt=c(0, 0, 0, 0.3, 0.6, 0.8, 1, 1, 1 ), i=2, k=3)

Run the code above in your browser using DataLab