make_derivative_matrix {lgspline} | R Documentation |
Compute First and Second Derivative Matrices
Description
Compute First and Second Derivative Matrices
Usage
make_derivative_matrix(
nc,
Cpredictors,
power1_cols,
power2_cols,
nonspline_cols,
interaction_single_cols,
interaction_quad_cols,
triplet_cols,
K,
include_2way_interactions,
include_3way_interactions,
include_quadratic_interactions,
colnm_expansions,
expansion_scales,
just_first_derivatives = FALSE,
just_spline_effects = TRUE
)
Arguments
nc |
Number of columns |
Cpredictors |
Predictor matrix |
power1_cols |
Indices of linear terms of spline effects |
power2_cols |
Indices of quadratic terms of spline effects |
nonspline_cols |
Indices of non-spline effects |
interaction_single_cols |
Indices of first-order interactions |
interaction_quad_cols |
Indices of quadratic interactions |
triplet_cols |
Indices of three-way interactions |
K |
Number of partitions minus 1 ( |
include_2way_interactions |
Include 2-way interactions |
include_3way_interactions |
Include 3-way interactions |
include_quadratic_interactions |
Include quadratic interactions |
colnm_expansions |
Column names |
expansion_scales |
Scale factors |
just_first_derivatives |
Only compute first derivatives |
just_spline_effects |
Only compute derivatives for spline effects |
Value
List containing first and second derivative matrices
[Package lgspline version 0.2.0 Index]