Examples
-
Fit a linear model and predict
Estimate fuel economy from weight and cylinders in mtcars and predict new cars with intervals.
-
Fit logistic and Poisson models
Model labor-force participation in mroz and insurance claim rates with an exposure offset.
-
Fit a mixed model
Give each sleepstudy subject its own intercept and read how much subjects vary.
-
Densities, quantiles, and random draws
Evaluate the normal and Student's t distributions and draw reproducible samples.
-
Fit a mixed model to a Polars table and chart it
Read sleepstudy with Polars, fit subject intercepts, and chart one fitted line per subject.
Interactive
-
School effects and shrinkage
A linear mixed model with random school intercepts, variance components, shrinkage, and what-if predictions.