find.spacings: Computes spacings for a binary sequence

find.spacingsR Documentation

Computes spacings for a binary sequence

Description

Computes the spacings or gaps between successes in a vector of binary observations (0's and 1's)

Usage

find.spacings(x)

Arguments

x

vector of 0's and 1's

Value

A list with components

y

vector of spacings

I

vector indicating if spacings are complete or right censored

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 <- c(0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0)
find.spacings(y)

bayesball/BayesTestStreak documentation built on April 28, 2024, 6:28 a.m.