This function is called within bootLongPhyloseq for each subject's data frame.

bootLongIndices(x, time_var, b, L, blks.first.index)

Arguments

x

A dataframe. It must have Index column that will be added by bootLongPhyloseq.

time_var

Character string. The name of the time variable.

b

A numeric. The block size to account for the dependence within-subject.

L

A numeric. Number of overlapping blocks per subject that will be added by bootLongPhyloseq.

blks.first.index

A vector of positive integer. This will be added by bootLongPhyloseq (same for all subjects.)

Value

A list of indices to include in the block bootstrap realization.