DistRegBuilder.add_p_smooth()#

DistRegBuilder.add_p_smooth(X, m, s, predictor, name=None)[source]#

Adds a parametric smooth to the model builder.

Parameters
  • X (Any) – The design matrix.

  • m (float) – The mean of the Gaussian prior.

  • s (float) – The standard deviation of the Gaussian 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

dict[str, Var]