Skip to content

get_predicted() does not include SE/CI for extended betareg #1121

@strengejacke

Description

@strengejacke
library("betareg")

data("LossAversion", package = "betareg")
la_xbx <- betareg(
  invest ~ grade * (arrangement + age) + male | arrangement + male + grade,
  data = LossAversion
)
#> Loading required namespace: numDeriv

insight::get_predicted(la_xbx, data = insight::get_datagrid(la_xbx, by = "grade"))
#> Warning: Something went wrong with computing standard errors and confidence
#>   intervals for predictions.
#> Warning: Could not apply Delta method to transform standard errors.
#>   You may be able to obtain standard errors by using the 
#>   `predict="link"` argument value.
#> Predicted values:
#> 
#> [1] 0.4590504 0.3009043
#> 
#> NOTE: Confidence intervals, if available, are stored as attributes and can be accessed using `as.data.frame()` on this output.

Created on 2025-08-25 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    3 investigators ❔❓Need to look further into this issueEnhancement 💥Implemented features can be improved or revisedget_predictedFunction specific issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions