Learn R Programming

scam (version 1.2-20)

marginal.matrices.tescv.ps: Constructs marginal model matrices for "tescv" and "tescx" bivariate smooths in case of B-splines basis functions for both unconstrained marginal smooths

Description

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.

Usage

marginal.matrices.tescv.ps(x, z, xk, zk, m, q1, q2)

Arguments

Value

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.

Details

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 .

References

Pya, N. and Wood, S.N. (2015) Shape constrained additive models. Statistics and Computing, 25(3), 543-559

See Also

smooth.construct.tescv.smooth.spec, smooth.construct.tescx.smooth.spec,

marginal.matrices.tesmi1.ps, smooth.construct.tesmd1.smooth.spec,

smooth.construct.tesmd2.smooth.spec