I want to output the lower tri in a matrix and format it to latex for a pretty output.
I have tried:
stargazer(overlap_stats1$overlap_prop$iso95[upper.tri(overlap_stats1$overlap_prop$iso95)])
but the result is only one line of output.
I want to output the lower tri in a matrix and format it to latex for a pretty output.
I have tried:
stargazer(overlap_stats1$overlap_prop$iso95[upper.tri(overlap_stats1$overlap_prop$iso95)])
but the result is only one line of output.
using a combination of signif
and formatC
like this a1$overlap_prop$iso95 <- formatC(signif(a1$overlap_prop$iso95, digits = 2), 2, format = "f")
and adding empty spaces in the upper tri inkluding the diagonal made the stargazer output look very nice :-)
Thanks for your help :-)