presmooth_data: Pre-smooth sparse longitudinal data
Description
Pre-smooth sparse longitudinal data
Usage
presmooth_data(obs_data, ...)
Value
list containing matrices X_t and X_c, which are the smoothed surrogate values for the treated and control groups, respectively, for use in downstream analyses
Arguments
obs_data
data.frame or tibble containing the observed data, with columns id identifying the individual measured, tt identifying the time of the observation, x the value of the surrogate at time tt, and a indicating 1 for treatment arm and 0 for control arm.