insightsengineering / insightsengineering/tern.mmrm

[tern.mmrm] Add new argument `residuals` to `g_mmrm_diagnostic()`

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
enhancement low priority SP3
Dominant language
R
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Idea:
- [ ] allows to choose whether one wants 'raw' or 'standardized' residuals when using `type = "fit-residual"`
- [ ] this would be ignored when `type = "q-q-residual"` since then only 'standardized' residuals make sense
- [ ] refactoring of current function code might be valuable given length and complexity, although interface should stay (`g_mmrm_diagnostic()` for users)

Note: This came in from a user as a feature request.

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing g_mmrm_diagnostic() implementation and tracing how it handles type = "fit-residual" and type = "q-q-residual". Define the requested residuals choices and verify that the new behavior is ignored for Q-Q residuals; done means both residual modes work without changing the existing user-facing function interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.