hr_h_gam_fit: Implements generalized additive fit for in-play data

View source: R/hr_h_gam_fit.R

hr_h_gam_fitR Documentation

Implements generalized additive fit for in-play data

Description

Implements generalized additive fit where logit(prob(HR)) = s(plate_x, plate_z)

Usage

  hr_h_gam_fit(d, HR = TRUE)

Arguments

d

Statcast data frame with variables HR, plate_x, plate_z

HR

If HR = TRUE, then HR is response, otherwise H is response

Value

gam object containing the generalized additive fit

Author(s)

Jim Albert


bayesball/CalledStrike documentation built on March 28, 2022, 12:12 p.m.