my.t.test2: Statistical test for continuous variables

View source: R/gaze_sub.R

my.t.test2R Documentation

Statistical test for continuous variables

Description

Statistical test for continuous variables

Usage

my.t.test2(y, x, method = 1, all = FALSE)

Arguments

y

a categorical vector

x

a numeric vector

method

method An integer indicating methods for continuous variables. Possible values in methods are 1 forces analysis as normal-distributed 2 forces analysis as continuous non-normal 3 performs a Shapiro-Wilk test or nortest::ad.test to decide between normal or non-normal Default value is 1.

all

A logical

Value

A numeric vector of length 1

Examples

library(moonBook)
y=acs$sex
x=acs$height
my.t.test2(y,x)

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.