FoldHit0.homoVAR.fn: calculate FoldHit with error control

Description Usage Arguments Value Author(s) Examples

View source: R/FoldHit0.homoVAR.fn.R

Description

a function to search for FoldHit0 corresponding to the estimated value of FoldHit

Usage

1
FoldHit0.homoVAR.fn(Y1, Y2, Alpha = 0.05, length.out = 1000, minDIFF = 0.01)

Arguments

Y1

a value or a vector for the first group (reference group)

Y2

a vector for the second group

Alpha

the significant level

length.out

the length of vectors of FoldHit0 candidate values for search FoldHit0.

minDIFF

If the difference between the input FoldHitC and the calculated FoldHitC corresponding to a FoldHit0 value, then stop the calculation process and return this calculated value as what we want

Value

FoldHit0

Author(s)

Xiaohua Douglas Zhang 02/2020

Examples

1
2
3
4
5
6
 y1 = rnorm(12, 0, 1); y2 = rnorm(12, -3, 1)
  FoldHit.homoVAR.UMVUE.fn(y1, y2)
  FoldHit0.homoVAR.fn(y1, y2, Alpha=0.05, length.out=1000, minDIFF=0.001)
  y1 = -y1; y2 = -y2
  FoldHit.homoVAR.UMVUE.fn(y1, y2)
  FoldHit0.homoVAR.fn(y1, y2, Alpha=0.05, length.out=1000, minDIFF=0.001)

xhdouglas/HTScapacity documentation built on Dec. 10, 2020, 8:20 p.m.