bivariate: Compute and format bivariate statistics

Description Usage Arguments Value Author(s)

View source: R/bivariate.R

Description

Generate and format a correlation table for publication.

Usage

1
2
3
4
5
6
7
8
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. "pairwise" is the default value and will do pairwise deletion of cases. "complete" will select just complete cases.

method

Character. "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

1
        A correlation table formatted for publication.

Author(s)

Nicolas Mangin


NicolasJBM/tablR documentation built on June 9, 2021, 5:23 p.m.