Description Usage Arguments Value Examples

Generate the B-spline basis

1 2 | ```
gen_splines(x, limits, knots, missCode = NA, degree = 1, intercept = TRUE,
name)
``` |

`x` |
Vector of numerical attribute that is going to be transformed to splines/hats. |

`limits` |
Vector of two float numbers indicating model fitting limits for x. |

`knots` |
Vector of float numbers representing inner cutpoints of x. |

`missCode` |
An integer indicating missing value, e.g. 0 or 999. |

`degree` |
An integer indicating degree of the transformed splines. |

`name` |
Character string used as the new field names for the transformed data. |

Data frame contains transformed splines. The returned data frame has 'length(knots) + degree (+ 1 if there is an intercept)' columns.

1 2 | ```
basisFICO <- gen_splines(x = Data_UsedPlat$FICO, limits = c(450, 900),
knots = c(500, 525, 540, 575, 600, 670), degree = 3, missCode = 0, name = 'FICO')
``` |

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.