STEPPSliding: Helper function to get a sliding-window subpopulation pattern

Description Usage Arguments Value References Examples

View source: R/STEPPup.R

Description

Helper function to get a sliding-window subpopulation pattern

Usage

1
STEPPSliding(x, n2, n1)

Arguments

x

vector with covariate

n2

size of each window (number of patients in one window)

n1

min difference between windows ('slide width')

Value

list with k elements, each holding the indices of the elements from x belonging to that group

References

Bonetti2000_StatInMed

Examples

1
2
3
set.seed(123)
x <- runif(200)
STEPPSliding(x, n2=10, n1=5)

sagade/STEPPup documentation built on Dec. 31, 2020, 3:15 a.m.