`model_info(model)$is_linear` should be `FALSE` with `mblogit()`
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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