6 Experiments
Collecting event data files for analysis across subjects and groups during phases of an experiment, and defining events recorded during the experiment.
6.1 Overview
Experiments collect groups of subjects; each subjects likely has multiple data files.
Ancillary information on schedules, cohorts of subjects, phases of the experiment, and event recorders used and event types collected.
6.2 Experiment Functions
| (require "../experiment.rkt") | package: base |
procedure
(expt? expt) → boolean?
expt : any/c
procedure
(expt-groups expt) → (listof list?)
expt : expt?
procedure
(expt-group-names expt) → (listof string?)
expt : expt?
procedure
(expt-subject-names expt) → (listof string?)
expt : expt?
procedure
(expt-subjects expt) → (listof list?)
expt : expt?
procedure
(expt-group-of-subject expt #:subject subject-id) → list? expt : expt? subject-id : string?
procedure
(expt-phase-names expt) → (listof string?)
expt : expt?
procedure
(expt-phase-name-and-ordinals expt #:subject subject-id #:timestamp timestamp) → list? expt : expt? subject-id : string? timestamp : nonnegative-integer?
procedure
(expt-schedules expt) → (listof hash?)
expt : expt?
procedure
(expt-schedule-by-name expt name) → hash?
expt : expt? name : string?
procedure
(expt-recorders expt) → (listof hash?)
expt : expt?
procedure
(expt-recorder-names expt) → (listof string)
expt : expt?
procedure
(expt-recorder-at-key expt recorder-key) → any/c
expt : expt? recorder-key : string?
procedure
(expt-has-recorder-at-key? expt recorder-key) → boolean? expt : expt? recorder-key : string?
procedure
(expt-eventtypes expt) → (listof hash?)
expt : expt?
procedure
(expt-eventtype-names expt) → (listof string?)
expt : expt?
procedure
(expt-eventtype-with-name expt event-type-name) → hash? expt : expt? event-type-name : string?
procedure
(expt-file-path expt #:group group-id #:subject subject-id #:filename file-name) → path? expt : expt? group-id : string? subject-id : string? file-name : string?
procedure
(expt-file-table expt) → query-table?
expt : expt?
procedure
(expt-filepaths->table expt filepaths) → query-table?
expt : list? filepaths : (listof path?)
procedure
(make-expt-from-directory #:path path) → expt?
path : path?
6.3 Subjects and Groups
| (require "../subjects-groups.rkt") | package: base |
procedure
(subject-name subject) → string?
subject : list?
procedure
(subject-file-names subject) → (listof string?)
subject : list?
procedure
(group-name subject) → string?
subject : list?
procedure
(group-subjects subject) → list?
subject : list?
procedure
(group-subject-names subject) → (listof string?)
subject : list?
6.4 Schedules
| (require "../schedules.rkt") | package: base |
procedure
(schedule-name sched) → string?
sched : hash?
procedure
(schedule-descr sched) → string?
sched : hash?
procedure
(schedule-start sched) → nonnegative-integer?
sched : hash?
procedure
(schedule-end sched) → nonnegative-integer?
sched : hash?
procedure
(schedule-duration sched) → nonnegative-integer?
sched : hash?
procedure
(schedule-color sched) → string?
sched : hash?
procedure
(schedule-period sched) → nonnegative-integer?
sched : hash?
6.5 Phases and Cohorts
| (require "../cohorts-phases.rkt") | package: base |
procedure
(phase-name phase) → string?
phase : hash?
procedure
(phase-length phase) → string?
phase : hash?
procedure
(cohort-phase-name cohort-phase) → (or/c #f string?)
cohort-phase : (or/c #f hash?)
procedure
(cohort-phase-start cohort-phase)
→ (or/c #f nonnegative-integer?) cohort-phase : (or/c #f hash?)
procedure
(cohort-phase-end cohort-phase)
→ (or/c #f nonnegative-integer?) cohort-phase : (or/c #f hash?)
procedure
(cohort-phase-ordinal-day cohort-phase #:timestamp timestamp) → (or/c #f nonnegative-integer?) cohort-phase : (or/c #f hash?) timestamp : nonnegative-integer?
procedure
(cohort-phase-ordinal-day-from-datestring cohort-phase #:date date-string) → (or/c #f nonnegative-integer?) cohort-phase : (or/c #f hash?) date-string : string?
procedure
(cohort-expt-ordinal-day cohort #:timestamp timestamp) → (or/c #f nonnegative-integer?) cohort : hash? timestamp : nonnegative-integer?
procedure
(cohort-expt-ordinal-day-from-datestring cohort #:date date-string) → (or/c #f nonnegative-integer?) cohort : hash? date-string : string?
procedure
(cohort-subjects cohort) → (listof string?)
cohort : hash?
procedure
(cohort-phases cohort) → (listof hash?)
cohort : hash?
procedure
(cohort-phase-of-timestamp cohort #:timestamp timestamp) → (or/c #f hash?) cohort : hash? timestamp : nonnegative-integer?
procedure
(cohort-phase-of-date cohort #:date date-string) → (or/c #f hash?) cohort : hash? date-string : string?
6.6 Recorders
| (require "../recorders.rkt") | package: base |
procedure
(recorder-name recorder) → string?
recorder : hash?
procedure
(recorder-type recorder) → string?
recorder : hash?
procedure
(recorder-color recorder) → string?
recorder : hash?
6.7 Event Types
| (require "../eventtypes.rkt") | package: base |
procedure
(eventtype-name eventtype) → string?
eventtype : hash?
procedure
(eventtype-type eventtype) → string?
eventtype : hash?
procedure
(eventtype-units eventtype) → string?
eventtype : hash?
procedure
(eventtype-options eventtype) → (listof string?)
eventtype : hash?
procedure
(eventtype-visible eventtype) → boolean?
eventtype : hash?
procedure
(eventtype-color eventtype) → string?
eventtype : hash?
procedure
(eventtype-min-ibi eventtype) → nonnegative-integer?
eventtype : hash?
procedure
(eventtype-min-bout-size eventtype) → number?
eventtype : hash?
6.8 Expt Files table
| (require "../expt-files-table.rkt") | package: base |
|
superclass: object% |
(send expt-files-editor% recalc-analysis)
(send expt-files-editor% files-selected filtered-files-table query-string)
(send my-document set-files-table files-table query-string)
constructor
(new expt-files-editor% [document document] [panel panel] [params params]) → (is-a?/c expt-files-editor%) document : (list?) panel : (is-a/c panel%) params : (hashmap?)
method
(send an-expt-files-editor set-param key value) → void? key : (string?) value : (string?) set a parmeter at the given keya