the input of number of knots needed not including the boundary
boundary.knots
the values of boundary knots
type
type of splines function which can be MS IS or Cs
degree
degree of the splines functions
delta
the length of the spans to split the range of covariate
Arguments
x
values of covariate
df
number of splines needed which is equal to knots+degree
knots
number of knots needed which does not include the number of knots at the beginning
boundary.knots
the values of boundary knots, which are usually the minimum and maximum of covariate
type
types of splines basis needed, which can be Ms Is or Cs
degree
degree of the splines function
delta
the length of the spans to split the range of covariate
eq.alloc
indicators of whether the knots are equally allocated
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.