predict_margin: Predict margin

Description Usage Arguments Value Examples

View source: R/predict.R

Description

Convert a predicted result to a predicted margin

Usage

1
predict_margin(model, pred_result)

Arguments

model

aflelo_model object

pred_result

probablilty of home win

Value

Margin for the home team

Examples

1
2
3
4
model <- aflelo_model()
pred_result <- aflelo:::predict_result(model, "Brisbane", "Western Bulldogs",
                        "Gabba")
aflelo:::predict_margin(model, pred_result)

lazappi/aflelo documentation built on May 17, 2019, 7:30 p.m.