(Internal) Collect diagnostic exposure record
makeDiagnosticExposureRecord
is an internal function for collecting diagnostic exposure record.
makeDiagnosticExposureRecord( true_theta, segment_record, diagnostic_exposure_record, config, simulation_constants )
true_theta
: examinee's true theta. Used to determine the segment the true theta belongs to.segment_record
: a named list containing counts on theta segments.diagnostic_exposure_record
: a named list containing the diagnostic exposure record.config
: a config_Shadow
object. Use createShadowTestConfig
for this.simulation_constants
: a named list containing simulation constants.makeDiagnosticExposureRecord
returns an updated exposure record.