Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: pretty_names = "labels" does not work for AER::tobit models #987

Closed
iago-pssjd opened this issue Jul 4, 2024 · 0 comments · Fixed by #993
Closed

Bug: pretty_names = "labels" does not work for AER::tobit models #987

iago-pssjd opened this issue Jul 4, 2024 · 0 comments · Fixed by #993
Assignees

Comments

@iago-pssjd
Copy link

Hi!
MRE: Same example as in https://easystats.github.io/parameters/articles/model_parameters_print.html?q=pretty_names#pretty-parameter-names-formatting, but replacing lm with AER::tobit

library(AER)
data(efc, package = "datawizard")
model <- tobit(neg_c_7 ~ e42dep + c172code, data = efc)
mp <- model_parameters(model)
print(mp, pretty_names = "labels")
# Fixed Effects

Parameter   | Coefficient |   SE |         95% CI |     z |     p
-----------------------------------------------------------------
(Intercept) |        8.72 | 3.45 | [ 1.95, 15.48] |  2.52 | 0.012
e42dep [2]  |       -1.00 | 3.61 | [-8.08,  6.08] | -0.28 | 0.782
e42dep [3]  |        2.68 | 3.06 | [-3.32,  8.68] |  0.88 | 0.381
e42dep [4]  |        3.88 | 3.00 | [-2.01,  9.77] |  1.29 | 0.197
c172code    |        1.14 | 0.90 | [-0.62,  2.90] |  1.27 | 0.204

Uncertainty intervals (equal-tailed) and p-values (two-tailed) computed using a Wald z-distribution approximation.

Thanks!

@strengejacke strengejacke self-assigned this Jul 20, 2024
strengejacke added a commit that referenced this issue Jul 20, 2024
…993)

* Bug: `pretty_names = "labels"` does not work for `AER::tobit` models
Fixes #987

* lintr

* add test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants