Support models with monotonic predictors
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- R
- Stars
- 114
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I have brms model with a number of mo(varname) terms.
It seems that projpred does not support these terms or is it that brms is unaware?
https://github.com/paul-buerkner/brms/blob/master/R/projpred.R#L117-L120
vs_11 <- varsel(brm_model_11, method = "forward")
! Projpred only supports standard multilevel and smoothing terms as well as offsets.
Error in `get_refmodel.brmsfit()`:
Thanks in advance
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 with the brms integration at R/projpred.R lines 117-120 and reproduce the reported varsel(brm_model_11, method = "forward") call using a model with mo(varname) terms. Trace get_refmodel.brmsfit() and define done as monotonic predictors being accepted without the current unsupported-terms error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100