curve_table: Produce Tables For concurve Functions

View source: R/curve_table.R

curve_tableR Documentation

Produce Tables For concurve Functions

Description

Produces publication-ready tables with relevant statistics of interest for functions produced from the concurve package.

Usage

curve_table(data, levels, type = "c", format = "data.frame")

Arguments

data

Dataframe from a concurve function to produce a table for

levels

Levels of the consonance intervals or likelihood intervals that should be included in the table.

type

Indicates whether the table is for a consonance function or likelihood function. The default is set to "c" for consonance and can be switched to "l" for likelihood.

format

The format of the tables. The options include "data.frame" which is the default, "docx" (which creates a table for a word document), "pptx" (which creates a table for powerpoint), "latex", (which creates a table for a TeX document), and "image", which produces an image of the table.

See Also

ggcurve()

curve_compare()

plot_compare()

Examples

## Not run: 
library(concurve)

GroupA <- rnorm(500)
GroupB <- rnorm(500)

RandomData <- data.frame(GroupA, GroupB)

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

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

## End(Not run)

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