one.sample.t: One-sample Students t test, with display of t function and...

Description Usage Arguments Value Examples

View source: R/one.sample.t.r

Description

One-sample Students t test, with display of t function and areas beyond t observed.

Usage

1
2
3
4
5
6
7
8
one.sample.t(
  x = NULL,
  sample.mean = NULL,
  sample.sd = NULL,
  n = NULL,
  mu = 0,
  test.type = "2-sided"
)

Arguments

x

Data to be used

sample.mean

A value to be supplied if original observations are not.

sample.sd

A value to be supplied if original observations are not.

n

The number of observations. (Use when dat are not supplied.)

mu

A value for the expected mean under the null hypothesis

test.type

2-sided or 1-sided

Value

Test results

Examples

1
one.sample.t(x=rnorm(10),mu=0)

CLPS0900/CLPS0900R documentation built on March 16, 2020, 4:55 a.m.