CopRegBuilder
CopRegBuilder#
- class liesel.liesel.distreg.CopRegBuilder(model0, model1)[source]#
Bases:
liesel.liesel.distreg.DistRegBuilder
A model builder for copula regression models.
Remember to add a predictor for the dependence parameter before adding the copula and building the model.
- Parameters
model0 (
DistRegBuilder
) – The first marginal distributional regression model builder.model1 (
DistRegBuilder
) – The second marginal distributional regression model builder.
Methods
add_copula
(copula)Adds a copula.
add_groups
(*groups)Adds node groups to the model builder.
add_nodes
(*nodes)Adds nodes to the model builder.
add_np_smooth
(X, K, a, b, predictor[, name])Adds a non-parametric smooth to the model builder.
add_p_smooth
(X, m, s, predictor[, name])Adds a parametric smooth to the model builder.
add_predictor
(name, inverse_link)Adds a predictor to the model builder.
add_response
(response, distribution)Adds the response to the model builder.
Returns a list of all unique nodes that will be part of the model, including the nodes from the groups and the inputs.
build
()Builds the model, including the inputs.
Attributes
A list of node groups to be added to the model.
A list of nodes to be added to the model.
The response node.