men_hall {HKRbook}R Documentation

men_hall

Description

Shiny app for the Monty Hall problem:

Usage

men_hall(pointdoor = 1, afteropen = 1)

Arguments

pointdoor

integer: to which door to point (default: 1)

afteropen

integer: play strategy 1=keep door, 2=change door (default: 1)

Details

Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?

Value

nothing

Examples

if (interactive()) men_hall()
if (interactive()) men_hall(4, 2)

[Package HKRbook version 0.1.3 Index]