Batched {DLSSM}R Documentation

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)

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

Value

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

Author(s)

Jiakun Jiang, Wei Yang, Wensheng Guo


[Package DLSSM version 1.1.1 Index]