I want to display H = 0.29[0.041]
in a plot. H
is italicized. I’m using the following code:
<code>annotate("text", x=11.77, y=-0.9,
label=paste0("italic(H)==", sprintf('%.3f', hausman_stats$hausman),
" *"[", sprintf('%.3f', hausman_stats$p_values[2]), "]""),
fontface=2, size=textsize, parse = TRUE)
</code>
<code>annotate("text", x=11.77, y=-0.9,
label=paste0("italic(H)==", sprintf('%.3f', hausman_stats$hausman),
" *"[", sprintf('%.3f', hausman_stats$p_values[2]), "]""),
fontface=2, size=textsize, parse = TRUE)
</code>
annotate("text", x=11.77, y=-0.9,
label=paste0("italic(H)==", sprintf('%.3f', hausman_stats$hausman),
" *"[", sprintf('%.3f', hausman_stats$p_values[2]), "]""),
fontface=2, size=textsize, parse = TRUE)
But, it’s showing H = 0.29[]
. I’m not sure what’s going wrong here. I was initially using the following code:
<code># hausman text
annotate("text",x=11.77, y=-0.9, label=paste0("Hausman",": " ,sprintf('%.3f',hausman_stats$hausman), " [", sprintf('%.3f',hausman_stats$`p-values`), "]"),
fontface=2,size=textsize)
</code>
<code># hausman text
annotate("text",x=11.77, y=-0.9, label=paste0("Hausman",": " ,sprintf('%.3f',hausman_stats$hausman), " [", sprintf('%.3f',hausman_stats$`p-values`), "]"),
fontface=2,size=textsize)
</code>
# hausman text
annotate("text",x=11.77, y=-0.9, label=paste0("Hausman",": " ,sprintf('%.3f',hausman_stats$hausman), " [", sprintf('%.3f',hausman_stats$`p-values`), "]"),
fontface=2,size=textsize)
I wanted to replace Hausman
to an italicized H
. So, I am changing the code.