cleverly.VariableImportanceResult#
- class cleverly.VariableImportanceResult(entries: tuple[VariableImportanceEntry, ...], fits: Mapping[str, TMLEResult], method: str = 'Benjamini-Hochberg', backend: str | None = None)[source]#
Candidate-exposure estimates with multiplicity-adjusted null tests.
- Parameters:
- entries
tupleofVariableImportanceEntry One entry per candidate and parameter.
- fits
mappingofstrtoTMLEResult The fit behind each candidate.
- method
str Multiplicity adjustment applied to the p-values.
- backend
strorNone Dataframe backend
to_frame()returns.
- entries
Methods#
- VariableImportanceResult.to_frame() Any[source]#
One row per candidate/parameter, in the order of the entries.
A run sorts its entries by adjusted p-value. An ordinary result emits
std_err,ci_lower,ci_upper,p_valueandp_value_adjusted. A result at a labelled status adds aninferencecolumn that names the status. A result whose entries supply no inference emits aninferencecolumn and the three spread columns under their diagnostic names, asTMLEResult.to_framedoes. It emits neither p-value column. Every fit of one run shares one estimator and one set of rows, so the entries share one status.- Returns:
dataframeOne row per candidate and parameter, in the order of the entries.
- Raises:
ValueErrorWhen the entries declare different inference statuses.
Attributes#
- VariableImportanceResult.entries: tuple[VariableImportanceEntry, ...]#
- VariableImportanceResult.fits: Mapping[str, TMLEResult]#