Long-term projects

Open
#289 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
data

Research direction

Start by reviewing the remaining checklist items around FeMat, ReMat, parametricbootstrap, coeftable, and likelihoodratiotest. Determine the intended direction for weighted model matrices and the Distributions dependency before changing anything. Done means the selected design is implemented and the affected mixed-model and statistical test behavior remains covered.

Written by the indexing model from the issue text.

Description

enhancement
  • evaluate the trace of the "hat" matrix. I think the best (universal) value of dof_residual may be nobs - tr(H). Alternatively it may be the case that different terms should have different denominator dof according to whether they are between or within grouping factors. Or we could just stay with the current "forget denominator degrees of freedom and assume they are always infinity" approach.

  • Save the lower triangle of the feL matrix in each row of the bstr from parametricbootstrap so that the Wald test results can be derived from that object alone. Naturally this will work fine for full-rank models and need some ugly workarounds for rank-deficient models. Grrr. In retrospect I think it will be better to just save both the estimated coefficients and their standard errors (full-length version in rank-deficient cases).

  • Drop the weighted model matrices from FeMat and ReMat and create an evaluation chain for passing a copy of .allterms through an update phase when performing weighting or pre-whitening.

  • If we only use the Distributions package to evaluate some tail probabilities in the coeftable and in likelihoodratiotest we could use SpecialFunctions instead, which is lightweight compared to Distributions. The p-value for a two-sided Z test is erfc(abs(z)/sqrt(2))

Dominant language
Julia
Stars
455
Forks
51
Avg merge
3d 15h
Merged PRs (30d)
4

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaStats/MixedModels.jl

All issues in JuliaStats/MixedModels.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.