I have spent hours trying to create a nice summary table that I can just copy and paste to a Word document but have failed. I am using the netmeta
package to model a network meta-analysis. I have tried to use RMarkdown, stargazer
, modelsummary
, xtable
, gt
and just can’t seem to do it and don’t know where I’m going wrong.
When I try RMarkdown, I get the following error in the render window:
C:UsersestuaAppDataRoamingTinyTeXtexmf-distscriptstexlivetlmgr.pl: Maybe the repository setting should be changed.
C:UsersestuaAppDataRoamingTinyTeXtexmf-distscriptstexlivetlmgr.pl: More info: https://tug.org/texlive/acquire.html
! LaTeX Error: File `multirow.sty' not found.
! Emergency stop.
<read *>
Error: LaTeX failed to compile RMarkdown.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See RMarkdown.log for more info.
Execution halted
When I create a dataframe to try and use the above packages, it only outputs the raw data in a table, not these summary results below which is what I am looking for:
Number of pairwise comparisons: m = 32
Number of treatments: n = 7
Number of designs: d = 10
Random effects model
Treatment estimate (sm = 'MD', comparison: other treatments vs 'None'):
MD 95%-CI z p-value 95%-PI
ALA 1.8033 [-0.6348; 4.2414] 1.45 0.1472 [-3.8517; 7.4583]
DHAEPA 1.8189 [-2.7954; 6.4332] 0.77 0.4398 [-5.2774; 8.9152]
EA 1.3625 [-3.2319; 5.9569] 0.58 0.5611 [-5.7184; 8.4433]
LA 0.8687 [-1.6083; 3.3457] 0.69 0.4919 [-4.8065; 6.5439]
MUFA 0.4155 [-3.7984; 4.6293] 0.19 0.8468 [-6.3760; 7.2069]
None . . . . .
SFA 1.4090 [-1.4802; 4.2982] 0.96 0.3392 [-4.4950; 7.3130]
Quantifying heterogeneity / inconsistency:
tau^2 = 5.4044; tau = 2.3247; I^2 = 85.7% [78.2%; 90.6%]
Tests of heterogeneity (within designs) and inconsistency (between designs):
Q d.f. p-value
Total 104.62 15 < 0.0001
Within designs 13.80 4 0.0080
Between designs 90.82 11 < 0.0001