Learn R Programming

refund (version 0.1-40)

sample_pspline_coef_2d: Sample coefficients from 2D tensor P-spline prior

Description

Samples from tensor product P-spline prior with additive penalties: P = (1/wiggliness) * (P_s x I_t + I_s x P_t) + I

Usage

sample_pspline_coef_2d(k_s, k_t, wiggliness)

Value

Matrix of coefficients (k_s x k_t).

Arguments

k_s

Basis dimension for first margin.

k_t

Basis dimension for second margin.

wiggliness

Controls smoothness.