pval: p-value for a 2-sample Welch's t-test.

Description Usage Arguments Value Examples

View source: R/scripts.R

Description

Can be calculated from the provided samples. Alternatively, if either one of the samples is NULL, can be calculated from the provided means, standard deviations and sample sizes

Usage

1
pval(x1 = NULL, x2 = NULL, two.tailed = TRUE, m, sdev, n)

Arguments

x1

first data sample, NAs will be ignored

x2

second data sample, NAs will be ignored

two.tailed

boolean to indicate whether the two-tailed or single-tailed p-value should be calculated

m

a vector of two values: means of the data samples (used only if x1 or x2 is NULL)

sdev

a vector of two values: standard deviations of the data samples (used only if x1 or x2 is NULL)

n

a vector of two values: sizes of the data samples (used only if x1 or x2 is NULL)

Value

the Welch's t-test p-value

Examples

1
#

rushkin/bitsandends documentation built on Oct. 21, 2020, 11:43 a.m.