Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

boot.ttest1

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

Examples

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

Rfast2

A Collection of Efficient and Extremely Fast R Functions II

v0.0.9
GPL (>= 2.0)
Authors
Manos Papadakis, Michail Tsagris, Stefanos Fafalios and Marios Dimitriadis.
Initial release
2021-03-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.