CopRegBuilder.add_np_smooth()
CopRegBuilder.add_np_smooth()#
- CopRegBuilder.add_np_smooth(X, K, a, b, predictor, name=None)#
Adds a non-parametric smooth to the model builder.
- Parameters
X (
Any
) – The design matrix.K (
Any
) – The penalty matrix.a (
float
) – The a, \(\alpha\) or concentration parameter of the inverse gamma prior.b (
float
) – The b, \(\beta\) or scale parameter of the inverse gamma prior.predictor (
str
) – The name of the predictor to add the smooth to.name (
Optional
[str
]) – The name of the smooth. (default:None
)
- Return type