dist.test: Test the difference in means between distributions.

Description Usage Arguments Value Examples

View source: R/vector_summary_stats.R

Description

This function computes a simple t-test, determining a p-value for the difference in means between two distributions, assuming homogeneity of variance.

Usage

1
dist.test(x, y)

Arguments

x

A categorical value (factor) with two levels

y

A list of response values

Value

A p-value coming from an anova/t-test

Examples

1
2
3
4
y <- c(rnorm(20,mean=10,sd=2),rnorm(20,mean=25,sd=6))
x <- factor(c(rep('A',20),rep('B',20)))

dist.test(x,y)

ctkremer/priceTools documentation built on May 28, 2019, 7:49 p.m.