easystats / easystats/insight

`model_info(model)$is_linear` should be `FALSE` with `mblogit()`

Open
#628 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question :interrobang:
Dominant language
R
Stars
442
Forks
47
Avg merge
3d 2h
Merged PRs (30d)
7

Description

I don't really understand the family code in model_info, but here's a test:

test_that("mblogit is not linear", {
  requiet("mclogit")
  mod <- mblogit(factor(gear) ~ mpg + hp, data = mtcars, trace = FALSE)
  expect_false(model_info(mod)$is_linear)
})

Contributor guide

Open the 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.

Research direction

Start by reading the model_info implementation, especially its family handling, and run the supplied mblogit reproducible test with mclogit. Trace how the mblogit model is classified, then verify that the test passes with model_info(mod)$is_linear returning FALSE.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.