yasa.EpochByEpochAgreement.get_sleep_stats#
- EpochByEpochAgreement.get_sleep_stats()[source]#
Return a
pandas.DataFrameof sleep statistics for each hypnogram derived from both reference and observed scorers.See also
See also
- Returns:
- sstats
pandas.DataFrame A
DataFramewith sleep statistics as columns and two rows for each session (one for reference scorer and another for observed scorer), indexed by(scorer, sleep_id). Whensubjectswas given, asubject_idlevel is inserted in between, i.e.(scorer, subject_id, sleep_id).SleepStatsAgreementreads the subjects from this level to account for the repeated measures.
- sstats