makef {relgam} | R Documentation |
Make non-linear features
Description
Internal function for making non-linear features.
Usage
makef(x, r, df, tol = 0.01, removeLin = T)
Arguments
x |
Input matrix, of dimension |
r |
Vector of residuals. |
df |
Degrees of freedom for the fit. |
tol |
A tolerance for same-ness or uniqueness of the x values. To be
passed to the |
removeLin |
If |
Value
A list:
f |
Non-linear features associated with the features in |
spline_fit |
A list of the spline fits of the residual against each feature. Useful for creating the non-linear features for new data. |
lin_comp_fit |
If |
[Package relgam version 1.0 Index]