yasa.SleepStatsAgreement.calibrate#
- SleepStatsAgreement.calibrate(data, bias_method='auto', adjust_all=False)[source]#
Calibrate a
DataFrameof sleep statistics from a new scorer based on observed biases inobs_data/obs_scorer.- Parameters:
- data
pandas.DataFrame A
pandas.DataFramewith sleep statistics from an observed scorer. Rows are unique observations and columns are unique sleep statistics.- bias_methodstr
If
'parm', sleep statistics are always adjusted based on parametric bias. If'regr', sleep statistics are always adjusted based on regression-modeled bias. If'auto'(default), bias sleep statistics are adjusted by either'parm'or'regr', depending on assumption violations.See also
- adjust_all: bool
If False (default), only adjust values for sleep statistics that showed a statistically significant bias in the
obs_data. If True, adjust values for all sleep statistics.
- data
- Returns:
- calibrated_data
pandas.DataFrame A
DataFramewith calibrated sleep statistics.
See also
- calibrated_data