cor_Z: corrected Z-test of Looney and Jones

Description Usage Arguments Value Examples

View source: R/corrected Z-test.R

Description

corrected Z-test of Looney and Jones

Usage

1
cor_Z(x, y, alternative = "two.sided", mu = 0)

Arguments

x

a (non-empty) numeric vector of data values. For tumor data.

y

a(non-empty) numeric vector of data values. For normal data

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or"less". You can specify just the initial letter.

mu

a number indicating the true value of the mean (or difference in means if you are performing a two sample test).

Value

A list containing the following components

statistic the value of the corrected Z-test statistic.

p.value the p-value for the test.

Examples

1
2
3
x <- c(3,2,5,13,54,63,22,11,NA,NA,NA)
y <- c(8,3,10,NA,NA,NA,NA,NA,43,96,14)
cor_Z(x,y) # z.stat = -0.4384378  p.value = 0.6610690

triphosphate/AMS597 documentation built on May 5, 2019, 5:57 p.m.