penaltyGoalsProb: Computing goals by united

Description Usage Arguments Value

View source: R/penaltyGoalsProb.R

Description

Computes the distribution function of possible goals by penalties.

Usage

1
penaltyGoalsProb(posPenalties, penaltyGoalProb, penaltyProb = 0.1)

Arguments

posPenalties

number of possible penalties in a game

penaltyGoalProb

probability of a goal by a singular penalty

penaltyProb

occurrence probability of a penalty

Value

A data.frame with two columns: the possible goals and the probability for achieving this number of goals.


unitedR documentation built on Jan. 5, 2018, 5:07 p.m.