module ProcCat

Public Instance Methods

setting_for_chisq_test( setting ) click to toggle source
# File lib/statsailr_procs_base/proc_setting/proc_cat.rb, line 35
def setting_for_chisq_test( setting )
  setting.libname = "stats"
  setting.func_name = "chisq.test"
  setting.main_arg_and_how_to_treat = nil
  setting.runtime_args = {"x" => one_from( result("table"), result("xtabs") ) }
  setting.store_result = true
  setting.print_opt = true
end
setting_for_fisher_test( setting ) click to toggle source
# File lib/statsailr_procs_base/proc_setting/proc_cat.rb, line 26
def setting_for_fisher_test( setting )
  setting.libname = "stats"
  setting.func_name = "fisher.test"
  setting.main_arg_and_how_to_treat = nil
  setting.runtime_args = {"x" => one_from( result("table"), result("xtabs") ) }
  setting.store_result = true
  setting.print_opt = true
end
setting_for_table( setting ) click to toggle source
# File lib/statsailr_procs_base/proc_setting/proc_cat.rb, line 7
def setting_for_table( setting )
  setting.libname = nil
  setting.envname = "sts_cat"
  setting.func_name = "table"
  setting.main_arg_and_how_to_treat = ["vars", :read_as_strvec, :no_nil]
  setting.runtime_args = {"data" => param("data") }
  setting.store_result = true
  setting.print_opt = false
end
setting_for_xtabs( setting ) click to toggle source
# File lib/statsailr_procs_base/proc_setting/proc_cat.rb, line 17
def setting_for_xtabs( setting )
  setting.libname = "stats"
  setting.func_name = "xtabs"
  setting.main_arg_and_how_to_treat = ["formula", :read_as_formula, :no_nil]
  setting.runtime_args = {"data" => param("data") }
  setting.store_result = true
  setting.print_opt = true
end