-
Notifications
You must be signed in to change notification settings - Fork 43
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
Feature Request: add the standard error below the coefficent. #145
Comments
It does not, but I'm happy to consider something like that. I'm not exactly sure how to incorporate that into the equation though. Do you have ideas on what it should look like? Using your example, we get library(equatiomatic)
library(lme4)
#> Loading required package: Matrix
m <- lm(mpg ~ cyl + disp, mtcars)
extract_eq(m, use_coef = TRUE) The coefficients from this model are: broom::tidy(m)
#> # A tibble: 3 x 5
#> term estimate std.error statistic p.value
#> <chr> <dbl> <dbl> <dbl> <dbl>
#> 1 (Intercept) 34.7 2.55 13.6 4.02e-14
#> 2 cyl -1.59 0.712 -2.23 3.37e- 2
#> 3 disp -0.0206 0.0103 -2.01 5.42e- 2 So would you want something like which would render as That seems a little unconventional and a bit confusing to me because it almost looks like the coefficient estimates should be be multiplied by their standard errors. We could try putting them as subscripts: Or as subscripts with annotations: But I still don't love the way those look. I am not at all sure how we could include r squared. Created on 2021-02-02 by the reprex package (v0.3.0) |
I've never seen the standard error included except as a +/-. Like the other notation though, it won't be standard mathematical notation and may be confusing. |
@datalorax Thanks for your reply, I think the stderr is below the I use the mathpix to capture the latex script, but the alignment should
It is usual to report the fitted regression output with standard error Wooldridge, Jeffrey M. 2018. Introductory Econometrics: A Modern |
Ah... I see. Yeah that might be possible, although it would probably get pretty confusing for anything other than simple models. We could maybe give it a try though. Thanks for the suggestion! |
How's the progress on this feature? I just stumbled on this package and was also looking for this feature until I saw this issue. I've personally been using And the code used to produce it: Ignore the messiness, the general usage would just be |
HI! The progress on this has been... none! I haven't worked on it at all, to be honest. But I just re-opened the issue and will keep it open as something to implement. I don't think it should be too terribly difficult. I just need to get the time and, unfortunately, this spring term is a bit overwhelming to me as is. But hopefully I can find some time here in the next few weeks to dedicate a day to some of these sorts of issues. |
I know this package from https://bookdown.org/yihui/rmarkdown-cookbook/equatiomatic.html. Like the actual coefficent output,
Does this package support the standard error below the coefficient (moreover, with R square)?
The text was updated successfully, but these errors were encountered: