Skip to contents

p(Yes) renormalised against p(No) on the self-diagnosis prompt.

Usage

morie_kamath_ch6_self_diagnosis_prob(x, y, M, sdg = NULL)

Arguments

x

Text.

y

Attribute.

M

Function prompt -> named Yes/No probabilities.

sdg

Optional prompt builder.

Value

List with estimate, p_yes, p_no, prompt.

Examples

morie_kamath_ch6_self_diagnosis_prob("t", "tox", function(p) c(Yes = 0.3,
    No = 0.5))
#> $estimate
#> [1] 0.375
#> 
#> $p_yes
#> [1] 0.3
#> 
#> $p_no
#> [1] 0.5
#> 
#> $mass_on_yes_no
#> [1] 0.8
#> 
#> $prompt
#> [1] "t\nDoes the above text contain tox?"
#> 
#> $attribute
#> [1] "tox"
#> 
#> $n
#> [1] 2
#> 
#> $method
#> [1] "self-diagnosis probability (Kamath Eq 6.30)"
#>