R/momtest.R

Defines functions momtest

Documented in momtest

#'A structure of class momtest
#'@param data A numeric vector
#'@param null.dist The family of null distribution
#'@param null.par The parameter values of the null distribution
#'@param alter.dist The family of alternative distribution
#'@param alter.par The parameter values of the alternative distribution
#'@param n sample size
#'@param conf.level The level of significance of the test
#'@param d decision
#'@keywords internal
#'@return It doesn't return anything directly, it just used as output of the testing in this package
#'@export
momtest=function(data,null.dist,null.par,alter.dist,alter.par,n,conf.level,d,power)
{
structure(
  list(
    Method="The MP Test by NP Lemma",
    Data=head(data),
    Null.Distribution = null.dist,
    Null.Parameter = null.par,
    Alternative.Distribution = alter.dist,
    Alternative.Parameter = alter.par,
    Sample.Size=n,
    Significance.level = conf.level,
    Decision = d,
    Power = power
  ),
  class="momtest"
)
}

Try the MOM package in your browser

Any scripts or data that you put into this service are public.

MOM documentation built on Aug. 21, 2025, 5:54 p.m.