Different variance per stratum

Open
#820 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
data

Research direction

Start by reading the documentation statement about the shared noise term σ²I and compare the requested behavior with R's nlme varIdent reference linked in the issue. Determine whether group-specific variances can be represented by the existing mixed-model design; done would mean documenting or implementing support for the requested per-stratum variance structure.

Written by the indexing model from the issue text.

Description

The documentation states that all observations are subject to the same noise term σ²I.
Is it possible to give different groups their own variance?
For example, if my group is gender and the first two observations are M and the third is F, I would want:

σ²M 0 0
0 σ²M 0
0 0 σ²F

i.e. something similar to varIdent in R:
https://cran.r-project.org/web/packages/nlme/nlme.pdf#Rfn.varIdent

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.