I'm a beginner in R, and I have got a question on texreg.
I have been searching for information online for days but I didn't find much. I want to include the t value in my exported table by using texreg, and I want my t value to be located just under each coefficient in [].
It would be really appreciated if anyone could offer me some hints, thanks!
Normally, standard errors should be reported in brackets. However, if you really want to replace them by t values, you can do so as follows.
An example regression analysis from the
lm
documentation:Solution 1:
This overrides the standard errors and replaces them by custom values which you provide. The resulting table:
Solution 2:
Instead of handing over the models to texreg, you can extract the coefficients etc. and save them to an object, manipulate the object, and hand over the manipulated object to texreg.
It is currently not possible to replace the round brackets by square brackets.