tidymodels / tidymodels/multilevelmod

`logistic_reg(engine = "gee")` doesn't support dot in formula

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
R
Stars
74
Forks
6
Avg merge
1h 53m
Merged PRs (30d)
1

Description

library(multilevelmod)
#> Loading required package: parsnip

mtcars$vs <- as.factor(mtcars$vs)
fit(logistic_reg(engine = "gee"), vs ~ ., mtcars)
#> Error in terms.formula(f, specials = "id_var"): '.' in formula and no 'data' argument

Created on 2024-05-26 with reprex v2.1.0

This seems to be due to a long-standing bug in the engine code.

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 reproducing the reported example with logistic_reg(engine = "gee") and the mtcars formula vs ~ . using the reprex shown. Trace the GEE engine entry point to identify where the formula is processed without data. Done means dot formulas work for this example without the reported terms.formula error, with a regression test covering it.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.