
Run Likelihood Calculation Across All Purity and Scale Factor Combinations
Source:R/Modeling.R
RunCallikelihood.RdFor each combination of purity and scale factor in purity_sf, computes the segment likelihoods for all segments in data using the specified model parameters.
Arguments
- purity_sf
Data frame or tibble. Grid of purity and scale factor values to evaluate; must include columns
muandrho.- data
Data frame or tibble. Segment data (see
Callikelihoodfor required columns).- sigma_C
Numeric. Parameter for segment likelihood (passed to
Callikelihood).