adjustAlphaToReduceSpike: (Internal) Apply spike-reduction mechanism on exposure rates

View source: R/eligibility_functions.R

adjustAlphaToReduceSpikeR Documentation

(Internal) Apply spike-reduction mechanism on exposure rates

Description

adjustAlphaToReduceSpike is an internal function for applying spike-reduction mechanism on exposure rates.

Usage

adjustAlphaToReduceSpike(
  exposure_record,
  segment_prob_of_final_theta,
  segments_visited,
  eligibility_flag_in_final_theta_segment,
  x,
  simulation_constants
)

Arguments

exposure_record

a named list containing exposure records.

segment_prob_of_final_theta

the certainty that the final theta estimate belongs in the segment for the final theta estimate. This is 1 when exposure control method is ELIGIBILITY, BIGM, and a probability when exposure control method is BIGM-BAYESIAN.

segments_visited

visited segments. This means a set of all segments that all interim theta estimates for this examinee belonged to. The segment that the final theta estimate belonged to is not considered a visited segment.

eligibility_flag_in_final_theta_segment

a named list containing eligibility flags in the segment the final theta estimate belongs to.

x

an output_Shadow object, containing data for a single examinee.

simulation_constants

a named list containing simulation constants.

Value

clipEligibilityRates returns an updated exposure record.


TestDesign documentation built on Sept. 11, 2024, 7:12 p.m.