missing data analysis
This commit is contained in:
14
plots.py
14
plots.py
@@ -96,6 +96,11 @@ class QualtricsPlotsMixin:
|
||||
sl_threshold = getattr(self, 'sl_threshold', None)
|
||||
if sl_threshold is not None:
|
||||
parts.append(f"SL-gte{sl_threshold}")
|
||||
|
||||
# Append voice ranking filter if set
|
||||
vr_filter = getattr(self, 'voice_ranking_filter', None)
|
||||
if vr_filter is not None:
|
||||
parts.append(f"VR-{vr_filter}")
|
||||
|
||||
if not parts:
|
||||
return "All_Respondents"
|
||||
@@ -191,6 +196,15 @@ class QualtricsPlotsMixin:
|
||||
sl_threshold = getattr(self, 'sl_threshold', None)
|
||||
if sl_threshold is not None:
|
||||
parts.append(f"STRAIGHT-LINER EXCL: ≥{sl_threshold} question groups")
|
||||
|
||||
# Append voice ranking filter if set
|
||||
vr_filter = getattr(self, 'voice_ranking_filter', None)
|
||||
if vr_filter is not None:
|
||||
vr_labels = {
|
||||
'only-missing': 'ONLY respondents missing voice ranking (QID98)',
|
||||
'exclude-missing': 'EXCLUDING respondents missing voice ranking (QID98)',
|
||||
}
|
||||
parts.append(f"VOICE RANKING: {vr_labels.get(vr_filter, vr_filter)}")
|
||||
|
||||
if not parts:
|
||||
# No filters active - return just sample size (or empty string if no sample size)
|
||||
|
||||
Reference in New Issue
Block a user