Learn R Programming

DLSSM (version 1.1.0)

Batched: Combine data into Batched data

Description

The time domain of observation will first be standardized into [0,1]. Then [0,1] will be divided into S equally spaced intervals as described in Jiang et al.(2021, Biometrics). Then those intervals slice the dataset to S batches of data.

Usage

Batched(formula, data, time, S)

Value

batchedList of batched data, the element of list is matrix with each row representing a sample
gap.leninterval length 1/S

Arguments

formula

An object of class "formula" (or one that can be coerced to that class): a symbolic description of response and covariates in the model.

data

Dataset matrix containing the observations (one rows is a sample).

time

The time variable in the dataset. The varying coefficient functions are assumed to be smooth functions of this variable.

S

Number of batches

Author

Jiakun Jiang, Wei Yang, Wensheng Guo