I use the package "gtsummary" to produce to look at the balance across treatments in my data frame. However, the result is an image in the viewer. How can I export the result into word to use it directly in my paper?
Below is the command I used for the summary table:
Bal_ana <- data %>% select(a_pri, a_org, a_rfa,a_cfi, ana_pri,ana_org,ana_rfa,ana_cfi,n_ana, Treatment)
by = Treatment, # split table by group
missing = "no" # don't list missing data separately
add_n() %>% # add column with total number of non-missing observations
add_p() %>% # test for a difference between groups
modify_header(label = "Variable") %>% # update the column header