sccoda.util.result_classes.CAResult.compare_parameters_to_truth

CAResult.compare_parameters_to_truth(b_true, w_true, *args, **kwargs)

Extends data frames from summary_prepare by a comparison to some ground truth slope and intercept values that are assumed to be from the same generative model (e.g. in data_generation)

Parameters
b_true : SeriesSeries

Ground truth slope values. Length must be same as number of cell types

w_true : SeriesSeries

Ground truth intercept values. Length must be same as number of cell types*number of covariates

args

Passed to az.summary

kwargs

Passed to az.summary

Return type

Tuple[DataFrame, DataFrame]Tuple[DataFrame, DataFrame]

Returns

  • Extends intercept and effect DataFrames

  • intercept_df – Summary DataFrame for intercepts

  • effect_df – Summary DataFrame for effects