Skip to contents

Data Preparation

Parse and validate survey data for modelling.

lx_parse_data()
Parse List-Experiment Data (single or multiple experiments)
lx_set_metadata()
Set metadata on list-experiment objects
lx_get_metadata()
Get metadata from list-experiment objects

Model Fitting

Fit Bayesian list-experiment models (Stan-backed).

lx_fit()
Fit a List Experiment Model

Model Management

Reduce model size or prepare it for downstream use.

lx_prune()
Prune an LX Model
lx_export()
Export Model Draw Means as JSON

Prediction

Cohort-level predictions from fitted models.

lx_cohort_set_from_predictors()
Build a Cohort Set from Predictors
lx_predict_for_cohorts()
Predict cohort means for a list experiment (lx_model)

Plotting

Exploratory and production plots for model outputs.

lx_strip_plot()
Plot List-Experiment Strip Summaries
lx_dumbbell_plot()
Plot List-Experiment Dumbbell Summaries
g6tr_dumbbell_plot_2() experimental
Dumbbell plot (icons + alpha-gradient segment).

Plot Styling

Helper constructors for styling plot layers. This is meant to be moved to some other package.

style_icon()
Create a shape (icon) styling data frame.
style_text()
Create a text styling spec.
style_segment()
Create a segment styling spec (constant alpha).
style_segment_alpha_gradient()
Create a segment styling spec (alpha gradient).
style_reference_line()
Create a reference-line styling spec.
find_fa_family()
Find a Font Awesome font family

Spreadsheet Summaries

Spreadsheet-style summaries for cohort sets.

lx_summary_for_cohort_set() lx_summary_for_cohort_set_render()
Spreadsheet summaries for cohort sets
lx_ppc_render()
Render cohort-set PPC summaries to a workbook

Diagnostics

Diagnostic helpers for list experiments.

lx_design_effect()
Design-effect test p-values for list experiments by cohort
lx_ppc()
Posterior predictive checks for cohort-level summaries
crps_draws()
Continuous Ranked Probability Score from predictive draws

Example Data

Example datasets included in the package

example_lx_model
Example List-Experiment Model
example_srv_lx
Simulated List-Experiment Survey