linearStats: Calculate correlation stats

Description Usage Arguments Value Author(s)

View source: R/survival.R

Description

Calculates the p-value and r-value for the correlation shown in the upper left hand side of the figure.

Usage

1
linearStats(data, xVar, yVar)

Arguments

data

tibble; Includes survival for each examined group and cancer.

xVar

character; The 1st group to calculate the correlation for. Must be a column in data.

yVar

character; The 2nd group to calculate the correlation for. Must be a column in data.

Value

A tibble with the p.value and estimate for the correlation between variables.

Author(s)

Jason T. Serviss


GranderLab/miR34a_asRNA_project documentation built on May 26, 2019, 7:26 a.m.