create_distribution#

pymc_marketing.model_config.create_distribution(name, distribution_name, distribution_kwargs, centered=None, **kwargs)[source]#

Create a PyMC distribution with the specified parameters.

Parameters:
namestr

Name of the variable.

distribution_namestr

Name of the PyMC distribution.

distribution_kwargsDict

parameters for the distribution including any nested distributions

**kwargs

Additional keyword arguments for the distribution.

Returns:
TensorVariable

A PyMC random variable.