Inconsistent check_model() failure for plsRglm package-constructed model

Open
#1,005 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
r

Research direction

Start by reproducing the failure with the supplied plsRglm example: check_model() errors for a seven-component FinalModel, while the five-component model works. Inspect the check_model() plotting path for plsRglm models and compare how it handles those two component counts. Done means the seven-component model can be checked successfully and existing behavior for the five-component model still works.

Written by the indexing model from the issue text.

Description

Waiting for response :love_letter:

Dear developers,

thank you for providing easystats to the community.

Using the performance 0.19.0 package, I stumbled upon a potential bug; steps to reproduce:

library(plsRglm)
library(easystats)

data(Cornell)
XCornell <- Cornell[, 1:7]
YCornell <- Cornell$Y

mod7 <- plsRglm(
  YCornell,
  XCornell,
  7,
  modele = "pls-glm-gaussian"
)
mod7_fin <- mod7$FinalModel

# Standard plots work
plot(mod7_fin)

# Plot via check_model() does not work
check_model(mod7_fin)

# Oddly, check_model() does work on models where the number of components constructed
# is smaller than the number of components that would theoretically be possible 
# (6; see above)
mod5 <- plsRglm(
  YCornell,
  XCornell,
  5,
  modele = "pls-glm-gaussian"
)
mod5_fin <- mod5$FinalModel
check_model(mod5_fin)

check_model() returns the error stating that not enough space for plotting is available. However, this does not seem the real reason to me, because increasing the plot size drastically does not solve this issue.

Thank you for your assistance.

Dominant language
R
Stars
1.2k
Forks
113
Avg merge
9h 8m
Merged PRs (30d)
27

Getting set up

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 easystats/performance

All issues in easystats/performance

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.