Public
Edited
Sep 28, 2023
1 star
Insert cell
Insert cell
Insert cell
loglik = FileAttachment("loglik.csv").csv()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
param_boot = FileAttachment("parametric_boostrap.csv").csv()
Insert cell
non_param_boot = FileAttachment("non_parametric_bootstrap.csv").csv()
Insert cell
Insert cell
Insert cell
Insert cell
{
const lines2 = vl.markLine({opacity: 0.7, strokeWidth: 3})
.data(prior_posterior_transformed)
.encode(
vl.x().fieldQ("x").title("π"),
vl.y().fieldQ("beta").title("Distribution"),
vl.color().fieldN("label").title("Distribution")
.legend({orient: "none", legendX: 315, legendY: 55, strokeColor: "black", padding: 10, zindex: 1})
)
.title({text: "Prior and Posterior Distribution of π", subtitle: "Prior used by Pfizer"})
.width(500).height(250)

return lines2.render()
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more