lhvanegasp / glmtoolbox

0 stars 0 forks source link

Official support for glmtoolbox #2

Closed adrianolszewski closed 1 month ago

adrianolszewski commented 3 months ago

Dear Professor @lhvanegasp , Just wanted to announce that glmtoolbox is getting more and more support!

strengejacke commented 3 months ago

And support has been added to ggeffects (https://strengejacke.github.io/ggeffects/), too.

adrianolszewski commented 3 months ago

Thank you very much for the information!

Some functions, like ggaverage() and test_predictions() depend on the marginaleffects, so until the support is added there, it won't work:

> ggeffects::ggaverage(a, terms = "Arm")
Error: Models of class "glmgee" are not supported. Supported model classes include:...

> ggeffects::hypothesis_test(a)
Error: Objects of class `glmgee` are not yet supported.

But the others work indeed! (sorry for a garbage checking, just wanted quickly to make sure it recognizes the class)

> ggeffects::ggpredict(a)
$Arm
# Predicted values of NoEvidenceMotion_num

Arm          | Predicted |     95% CI
-------------------------------------
SoC   |      0.96 | 0.86, 0.99
HD   |      0.93 | 0.82, 0.97

Adjusted for: ....

> ggeffects::ggemmeans(a, terms = "Arm")
NOTE: Results may be misleading due to involvement in interactions
# Predicted values of NoEvidenceMotion_num

Arm          | Predicted |     95% CI
-------------------------------------
SoC          |      0.96 | 0.92, 0.98
HD          |      0.94 | 0.88, 0.97
....