draw_moi_initial: Draw initial MOIs

View source: R/draw_moi_initial.R

draw_moi_initialR Documentation

Draw initial MOIs

Description

Function for drawing initial MOIs.

Usage

draw_moi_initial(moi_list, datasampleID, y_no_mxed, y_mxed)

Arguments

datasampleID

is a vector of sample IDs; that is, a character vector such as c('id1:1','id2:1','id3:1','id4:1'). It is required to ensure the order of the initial MOI estimates is consistent with the data.

y_no_mxed

is a vector comprising a subset of datasampleID; for example c('id1:1','id4:1'). The subset includes sample IDs for all samples for which there is no evidence of multiclonality; that is, samples for which an MOI of one is possible.

y_mxed

is a vector comprising a subset of datasampleID; for example c('id1:2','id4:3'). The subset includes sample IDs for all samples for which there is evidence of multiclonality; that is, samples for which an MOI of one is not possible. Note that, y_no_mxed and y_mxed are disjoints sets that together union of is equal to the unordered equivalent of datasampleID.

moi_list$moi_prior

is a character, either 'Poisson', 'nBinomial', 'Geometric' or 'Uniform', that defines the prior distribution over the MOI.

moi_list$moi_max

is an integer defining the maximum moi possible in the model

moi_list$moi_hyperparameter

is a parameter of the prior distribution

moi_list$moi_size_hyperparameter

is a parameter of the prior distribution


artaylor85/FreqEstimationModel documentation built on Feb. 1, 2024, 6:44 p.m.