PTMCoef.new_rw1_fromzero()#
- classmethod PTMCoef.new_rw1_fromzero(knots, scale, inference=None, name='', scale_penalty=True, diagonalize_penalty=True, role='transformation_coef', noncentered=False)[source]#
Create RW1 coefficients anchored at 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. (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 anchored at zero.