bivariate: Generate and format a correlation table for publication.

Description Usage Arguments Value

View source: R/bivariate.R

Description

Generate and format a correlation table for publication.

Usage

1
2
bivariate(x, use = "pairwise", method = "pearson", digits = 3,
  variables = NULL, addpval = T)

Arguments

x

Tibble or dataframe. Numeric variables as columns, observations as rows.

use

Character. use="pairwise" is the default value and will do pairwise deletion of cases. use="complete" will select just complete cases.

method

Character. method="pearson" is the default value. The alternatives to be passed to cor are "spearman" and "kendall"

digits

Numeric. Number of digits to be displayed in the formated table.

variables

Character vector. Names of the variables in rows (if different from names in the dataframe).

addpval

Logical. Whether p-values should be added below the correlations.

Value

A correlation table formated for publication.


NicolasJBM/writer documentation built on March 22, 2019, 5:48 p.m.