weighted.z.test: Weighted Z test combination

Description Usage Arguments Value Examples

View source: R/weighted z.R

Description

Weighted Z test combination

Usage

1
weighted.z.test(x, y, alternative = "two.sided")

Arguments

x

a (non-empty) numberic vector of data values.

y

a (non-empty) numberic vector of data values.

alternative

a character string indicates the alternative hypothesis and must be one of "two.sided", "greater" or "less".

Value

A list containing the following components:

statistic

the value of weighted z test combination statistic

p.value

the p-value for the test

METHOD

the method we implement

Examples

1
2
3
x <- c(3,5,8,12,9,23,42,NA,58,NA,NA)
y <- c(10,5,NA,8,NA,NA,18,NA,45,66,44)
weighted.z.test(x,y,alternative="two.sided") #pc=1.234111  p.value=0.2171614

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