create_bivariate_design | R Documentation |
create_bivariate_design
accepts two numeric vectors of equal length as inputs. From these inputs, a bivariate smoothing design matrix is produced using thin plate splines.
create_bivariate_design(X1, X2, num_knots = NULL, knots = NULL)
X1 |
numeric vector for first variable |
X2 |
numeric vector for second variable |
num_knots |
optional: number of knots |
knots |
optional: matrix of knot locations for bivariate smoothing |
list containing the design matrix Z
and matrix of knots
Ruppert, David, Matt P. Wand, and Raymond J. Carroll. Semiparametric Regression. No. 12. Cambridge university press, 2003. Section 13.5
Matt Wand (2018). SemiPar: Semiparametric Regression. R package version 1.0-4.2.
x1 <- rnorm(100) x2 <- rnorm(100) res <- create_bivariate_design(x1, x2) res$knots dim(res$Z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.