Descriptive statistics

Calculation descriptive statistics by groups.

descriptive

ClinicalTrialUtilities.descriptiveFunction
descriptive(data;
    sort::Union{Symbol, Array{T,1}} = Array{Symbol,1}(undef,0),
    vars = [],
    stats = :default)::DataSet{Descriptive} where T <: Union{Symbol, String}

Descriptive statistics.

  • $sort$ sorting columns
  • $vars$ variabels
  • $stats$ statistics

freque

contab

ClinicalTrialUtilities.contabFunction
contab(data; row::Symbol, col::Symbol, sort = Dict())::ConTab

Make contingency table.

contab(data, sort; row::Symbol, col::Symbol)

Make contingency tables set.

contab(m; row = nothing, col = nothing)

Make contingency table.

metaprop

ClinicalTrialUtilities.metapropFunction
metaprop(tab::Vector{T}; type::Symbol, model::Symbol = :fixed, zeroadj::Real = 0, tau::Symbol =:dl)::MetaProp where T <: AbstractConTab

Meta-analysis for 2x2 tables.

tab: vectro of ConTab{2,2} or McnmConTab;

Inverce Variance method used to get variance estimate for fixed effect.

type - type of measure:

  • :rr
  • :or/
  • :diff

model:

  • :fixed
  • :random

zeroadj - zero adjustment value for all cells;

tau - τ² calculation method:

  • :dl
  • :ho
  • :hm
metaprop(data::DataSet{T}; type::Symbol, model::Symbol = :fixed, zeroadj::Real = 0, tau::Symbol =:dl)::MetaProp where T <: AbstractConTab

Meta-analysis for 2x2 tables.

data - DataSet of ConTab{2,2} or McnmConTab;