myconstructor: Constructor Function

View source: R/myconstructor.R

myconstructorR Documentation

Constructor Function

Description

Constructor function that takes the input of 2 vectors and an integer value alpha and outputs the confidence interval and p-value for the t.test.

Usage

myconstructor(x, y, alpha)

Arguments

x

is a vector

y

is a vector

alpha

is a numeric value between 0 and 1 representing the error

Value

list containing the data, alpha, the confidence interval from input alpha value and the resulting p-value.

Examples

myconstructor(x=rnorm(30,5,2),y=rnorm(40,3,2),0.05)

Jordan-Daugherty-1/projectpart3daugherty documentation built on April 20, 2022, 12:43 a.m.