Learn R Programming

tbrf (version 0.1.5)

tbr_binom_window: Binomial test based on time window

Description

Binomial test based on time window

Usage

tbr_binom_window(x, tcolumn, unit = "years", n, i, alpha)

Value

list

Arguments

x

column containing "success" and "failure" observations as 0 or 1

tcolumn

formatted time column

unit

character, one of "years", "months", "weeks", "days", "hours", "minutes", "seconds"

n

numeric, describing the length of the time window.

i

rows

alpha

numeric, probability of a type 1 error, so confidence coefficient = 1-alpha