testIntercept: Test the Value of the Intercept

View source: R/Main.R

testInterceptR Documentation

Test the Value of the Intercept

Description

Tests whether the intercept/grand mean has some given value. For a general test of whether a parameter has a given value, see valueTest_SDDR. Note that in order for this test to be very meaningful (probably)

Usage

testIntercept(priorCMs, postCMs, factors, testVal,
  dmFactors = stats::formula(" ~ 1"), contrastType = NULL,
  testFunction = valueTest_SDDR)

Arguments

priorCMs

See testHypothesis.

postCMs

See testHypothesis.

factors

See testHypothesis.

testVal

The value that will be tested. Depends on the choice of testFunction. See valueTest_SDDR for the interpretation of this argument by the default test function.

dmFactors

See testHypothesis.

contrastType

See testHypothesis.

testFunction

A function of 3 positional arguments: the prior intercept, the posterior intercept, and the point at which the hypothesis is tested (i.e. testVal is passed as the third argument). A custom test function may choose to ignore testVal if the tested values are determined in some other way. The prior and posterior intercepts will be vectors or one-column matrices.

Value

The result of the function depends on the choice of testFunction. See valueTest_SDDR for an example.


hardmanko/CMBBHT documentation built on June 9, 2022, 12:44 a.m.