Skip to content

Prototype mixed models explorer - #39

Draft
jbkunst wants to merge 19 commits into
masterfrom
feature/mixed-models-explorer
Draft

Prototype mixed models explorer#39
jbkunst wants to merge 19 commits into
masterfrom
feature/mixed-models-explorer

Conversation

@jbkunst

@jbkunst jbkunst commented Aug 17, 2026

Copy link
Copy Markdown
Owner

What this adds

  • new mixed-models/ draft app following the repository structure
  • simulated grouped data with four underlying structures: none, random intercept, random slope, intercept + slope
  • five fitted-model choices: complete pooling, no pooling, random intercept, random slope, intercept + slope
  • mathematical data-generating and fitted-model formulas plus the corresponding lm() / lmer() syntax
  • base R main plot with simulated truth and fitted relationships
  • base R diagnostics for residuals, Q-Q, random effects, shrinkage, and variance components
  • technical model check for optimizer convergence and singular fits

Learning goal

Keep data generation separate from model specification, then make partial pooling visible through shrinkage of group-specific intercept/slope estimates toward the population effects.

Status

Draft app on purpose. The site build skips it while the interaction and statistical story are being tested. No Highcharter/proxy yet.

Local check

shiny::runApp("mixed-models")

The current connector environment does not provide an R runtime, so this PR has been reviewed statically but not executed here yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant