update GLM-truncated-censored-regression for PyMC 6#878
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
|
View / edit / reply to this conversation on ReviewNB aloctavodia commented on 2026-05-11T07:17:29Z Something like this could also work here:
pc = az.plot_dist({"linear": trunc_linear_fit, "censored":cens_linear_fit}, var_names=["slope"], visuals={"point_estimate_text": False, "title": {"text": "Linear regression"}, } ) az.add_lines(pc, slope) pc.add_legend("model")
|
|
View / edit / reply to this conversation on ReviewNB aloctavodia commented on 2026-05-11T07:17:30Z similar to my previous comment |
Summary
az.plot_posterior(..., ref_val=...)calls withaz.plot_dist(...)+az.add_lines(pc, {"slope": slope})sinceref_val=was removed andadd_linesnow takes aPlotCollection.pc.add_title(...)instead ofpc.figure.suptitle(...)(the latter is not exposed onPlotCollection);fig, ax = plt.subplots(...)grid since the modular API doesn't accept Axes.