View source: R/bivar.smooth.const.R
marginal.matrices.tescv.ps | R Documentation |
This function returns the marginal model matrices and the list of penalty matrices for the tensor product bivariate smooth with the single concavity or convexity restriction along the second covariate. The marginal smooth functions of both covariates are constructed using the B-spline basis functions.
marginal.matrices.tescv.ps(x, z, xk, zk, m, q1, q2)
x |
A numeric vector of the values of the first covariate at which to evaluate the B-spline marginal functions.
The values in |
z |
A numeric vector of the values of the second covariate at which to evaluate the B-spline marginal functions.
The values in |
xk |
A numeric vector of knot positions for the first covariate, |
zk |
A numeric vector of knot positions for the second covariate, |
m |
A pair of two numbers where |
q1 |
A number denoting the basis dimension of the first marginal smooth. |
q2 |
A number denoting the basis dimension of the second marginal smooth. |
The function is not called directly, but is rather used internally by the constructor
smooth.construct.tescv.smooth.spec
and smooth.construct.tescx.smooth.spec
.
X1 |
Marginal model matrix for the first unconstrained marginal smooth. |
X2 |
Marginal model matrix for the second monotonic marginal smooth. |
S |
A list of penalty matrices for this tensor product smooth. |
Natalya Pya <nat.pya@gmail.com>
Pya, N. and Wood, S.N. (2015) Shape constrained additive models. Statistics and Computing, 25(3), 543-559
smooth.construct.tescv.smooth.spec
,
smooth.construct.tescx.smooth.spec
,
marginal.matrices.tesmi1.ps
,
smooth.construct.tesmd1.smooth.spec
,
smooth.construct.tesmd2.smooth.spec
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.