Skip to contents

Compute probabilities to declare Go/Nogo given rules and underlying orr.

Usage

ORR_Go_Nogo(n, orr, go_cut, nogo_cut)

Arguments

n

number of subjects

orr

underlying probability of response

go_cut

cutting rule for Declaring Go, obs_orr_num >= go_cut to declare Go.

nogo_cut

cutting rule for Declaring Nogo, obs_orr_num <= nogo_cut to declare Nogo

Value

numerical vector of probabilities to declare Go/Nogo.

Examples

# Compute operating characteristics for the following scenario:
# sample size n = 20, underlying ORR = 0.4
# The rule is to declare Go when #resp >= 9, and to declare Nogo when #resp <= 4
ORR_Go_Nogo(n = 20, orr = 0.4, go_cut = 9L, nogo_cut = 4L)
#>        prob_go      prob_nogo prob_equivocal 
#>     0.40440127     0.05095195     0.54464677 
#> attr(,"underlying_orr")
#> [1] 0.4
#> attr(,"class")
#> [1] "gonogo_orr_oc_vec" "gonogo_oc_vec"