R/testforDEP_result.R

setClass("testforDEP_result",

  slots = list(
    TS = "numeric",
    p_value = "numeric",
    CI = "list"
    ),

  prototype = list(
    CI = list()
  )

)

setValidity("testforDEP_result", function(object){
  if(object@p_value >1 || object@p_value <0){
    stop("p_value is outside 0~1")
  }

})

Try the testforDEP package in your browser

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

testforDEP documentation built on May 2, 2019, 6:46 a.m.