boot.ttest1: One sample bootstrap t-test for a vector

View source: R/means_tests.R

One sample bootstrap t-test for a vectorR Documentation

One sample bootstrap t-test for a vector

Description

One sample bootstrap t-test for a vector.

Usage

boot.ttest1(x, m, R = 999)

Arguments

x

A numerical vector with the data.

m

The assumed mean value.

R

The number of bootstrap resamples to draw.

Details

The usual one sample bootstrap t-test is implemented, only faster.

Value

res

A two valued vector with the test statistic and its p-value.

Author(s)

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr

See Also

boot.student2, perm.ttest2, welch.tests, jack.mean

Examples

x <- rexp(30)
a <- t.test(x, mu = 0)
b <- boot.ttest1(x, 0)

Rfast2 documentation built on Aug. 8, 2023, 1:11 a.m.