| fit.surr | Fit marginal and conditional state-space models for longitudinal surrogate evaluation |
| lagged | Compute lagged values of a vector |
| plot.fitted_onlinesurr | Plot time-varying PTE measures and treatment effects from a '"fitted_onlinesurr"' object |
| s | Construct a B-spline basis matrix |
| sim_onlinesurr | Simulated longitudinal surrogate dataset for 'OnlineSurr' |
| summary.fitted_onlinesurr | Summarize a '"fitted_onlinesurr"' object |
| time_homo_test | Test time-homogeneity of the PTE |