mavg_plot: Moving Average Plot

mavg_plotR Documentation

Moving Average Plot

Description

Constructs a moving average plot of a binary sequence.

Usage

mavg_plot(y, width=20)

Arguments

y

vector of 0's and 1's

width

size of the window for the moving average

Author(s)

Jim Albert

References

Albert, J. (2013), Looking at Spacings to Access Streakiness, Journal of Quantitative Analysis of Sports, Vol 9, Issue 2, 151-163.

Examples

y <- rbinom(500, size=1, prob=0.3)
mavg_plot(y, width=20)

bayesball/BayesTestStreak documentation built on Dec. 15, 2022, 11:36 a.m.