homerun_probability_computation: How does weather influence the probability of hitting a...

Description Usage Arguments Value

Description

Computes whether there is a noticable association between weather and average ticket sales revenue

Usage

1
2
homerun_probability_computation(homerun_array, temp_array, humid_array,
  temperature, humidity)

Arguments

humid_array

vector containing the max humidity for the day the baseball game was on

temperature

a temperature of interest to plug into the binomial logistic regression

humidity

a humidity of interest to plug into the binomial logistic regression

homerun

Binoary response variable stating whether or not a home run was hit during that days game

temp_arrau

vector containing the mean temperature for the day the baseball game was on

Value

The probability of there being a home run based on your inputted arrays and temperature and humidity of interest


gorchels/junemadness documentation built on June 16, 2019, 3:13 a.m.