Description Usage Arguments Value Author(s) References See Also Examples

View source: R/MIC.splines.basis.R

Creation splines basis for M_splines, I_splines and C_splines

1 2 |

`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 |

list(mat=mat,x=x, df=df, knots=knots,boundary.knots=boundary.knots, type=type,degree=degree,delta=delta)

`mat` |
it is a matrix of splines basis |

`x` |
the input of covariate |

`df` |
the input of number of splines needed |

`knots` |
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 |

Yili Hong

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.

i.spline.x, m.spline.x

1 2 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.