getTheDeviation: Calculate the Deviations

View source: R/getTheDeviation.R

getTheDeviationR Documentation

Calculate the Deviations

Description

Calculate deviations between observations and expectations.

Usage

getTheDeviation(
  theData,
  theExpectPoint,
  theCategory,
  theDim,
  RandomReplaceRatio = 0.5,
  maxBoot = 200,
  theCompare = "upper",
  theAlt = "less",
  theSig = 0.05,
  tempPrint = "",
  ifItem = FALSE,
  theCompareItem = "upper",
  theAltItem = "less",
  theSigItem = 0.05
)

Arguments

theData

The prepared data matrix.

theExpectPoint

The expectation list.

theCategory

The Calculated Category.

theDim

The Calculated Dimensions.

RandomReplaceRatio

Decimal between 0 and 1.

maxBoot

The maximum steps of bootstrap.

theCompare

= 'between', 'lower', 'upper', 'mean'

theAlt

= 'two.sided', 'greater', 'less'

theSig

= 0.05

tempPrint

= ”

ifItem

= FALSE, calculate the items when TRUE.

theCompareItem

= 'between', 'lower', 'upper', 'mean'

theAltItem

= 'two.sided', 'greater', 'less'

theSigItem

= 0.05

Value

The function returns a list.

Author(s)

zdx, zhaodexuan@aliyun.com

Examples

## Not run: 
theDeviation <- getTheDeviation(theData, theExpectPoint, theCategory, theDim)

## End(Not run)


zhaodexuan/NERF documentation built on Aug. 1, 2023, 1:18 a.m.