PTMCoef.new_rw1_sumzero()#
- classmethod PTMCoef.new_rw1_sumzero(knots, scale, inference=None, name='', scale_penalty=True, diagonalize_penalty=True, role='transformation_coef', noncentered=False)[source]#
Create RW1 (first-order random walk) coefficients with sum-to-zero.
- Parameters:
knots (
Any
) – Knot vector for the spline basis.scale (
Var
) – Scale variable used for the coefficient prior.inference (
Any
) – Optional inference specification for the latent parameter, aliesel.goose.MCMCSpec
object. (default:None
)name (
str
) – Optional base name for created variables. (default:''
)scale_penalty (
bool
) – Whether to scale the penalty matrix to unit infinity norm. (default:True
)diagonalize_penalty (
bool
) – Whether to diagonalize the penalty via a eigenvalue decomposition. (default:True
)role (
str
) – Role assigned to the latent coefficient variable. (default:'transformation_coef'
)
- Return type:
Self
- Returns:
PTMCoef – Configured coefficient with RW1 sum-to-zero constraint.