knitr::opts_chunk$set(
  message = TRUE,
  warning = TRUE,
  collapse = TRUE,
  comment = "#>"
)

It is quite easy to generate tables of outputs for the various concurve functions and in different formats. Here we show how to do this with a simple example. First, we'll simulate some fake data as usual, compare the means, and then produce a confidence function of the outputs.

library(concurve)
GroupA <- rnorm(500)
GroupB <- rnorm(500)
RandomData <- data.frame(GroupA, GroupB)

intervalsdf <- curve_mean(GroupA, GroupB,
  data = RandomData, method = "default"
)

The results are now stored in intervalsdf. Using the curve_table() function, we can now produce a high quality table with several values of interest.

(x <- curve_table(data = intervalsdf[[1]], format = "image"))

Here we specified the format as "image", which will give us just that. We can also specify other options such as

(z <- curve_table(intervalsdf[[1]], format = "latex"))

which is useful for inserting the output into a TeX document, and we can also specify options such as

(df <- curve_table(intervalsdf[[1]], format = "data.frame"))

The options "pptx" and "docx" can also be specified as format options, but specifying these will open those programs if they are installed, which may not be ideal for all because no everyone has access.

Cite R Packages

Please remember to cite the packages that you use.

citation("concurve")
citation("flextable")
citation("officer")

References




Zadchow/concurve documentation built on Jan. 11, 2024, 4:55 a.m.