Learn R Programming

equivalenceTest (version 0.0.1.1)

Equivalence Test for the Means of Two Normal Distributions

Description

Two methods for performing equivalence test for the means of two (test and reference) normal distributions are implemented. The null hypothesis of the equivalence test is that the absolute difference between the two means are greater than or equal to the equivalence margin and the alternative is that the absolute difference is less than the margin. Given that the margin is often difficult to obtain a priori, it is assumed to be a constant multiple of the standard deviation of the reference distribution. The first method assumes a fixed margin which is a constant multiple of the estimated standard deviation of the reference data and whose variability is ignored. The second method takes into account the margin variability. In addition, some tools to summarize and illustrate the data and test results are included to facilitate the evaluation of the data and interpretation of the results.

Copy Link

Version

Install

install.packages('equivalenceTest')

Monthly Downloads

156

Version

0.0.1.1

License

GPL-3

Maintainer

Chao Wang

Last Published

March 4th, 2019

Functions in equivalenceTest (0.0.1.1)

equivTestFixedMarginCombPlot

Provide a combined plot for equivvalence test
equivTestPlot

Plot the equivalence test result
equivalenceTest

eqivalenceTest: A package for evaluating equivalence of the means of two normal distributions.
equivTestMWCMLE

Equivalence test by Modified Wald test with standard error estimated by RMLE (MWCMLE)
createEquivTestSmpl

Create summary information of a dataset
summarizeSample

Summarize data for equivalence test
scatterPlotEquivTestData

Provide a side-by-side scatter plot of two or three datasets for equivalence test.
histWNormDensity

Histogram with a fitted normal density function
RMLE_equivTest

Perform restricted MLE (RMLE) to estimate parameters under the constraint defined by the boundary of null hypothesis
dfSatterthwaite

Compute the Satterthwaite approximation of degree of freedom for t distribution
equivTestFixedMargin

Conduct the equivalence test with fixed margin