Function huxreg
in the huxtable
package automatically recognises numbers and formats them as predefined in the number_format = "%.3f"
option. I would like to report confidence intervals in my report and use the CI95: prefix. Unfortunately, the numerical part of the prefix is automatically formatted and the prefix looks like CI95.000.
Let's consider following example:
library(huxtable)
data <- data.frame(y = rnorm(10), x=rnorm(10))
fit <- lm(y ~ x, data)
huxreg(fit,
ci_level = 0.95,
error_pos = "below",
error_format = "CI95: ({conf.low}, {conf.high})" )
Is there any way to get the CI95 as intended? I have tried numeric to character conversions with no success. Thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…