Construct a TDMM plotting grid
make.tdmm.plot.grid.RdCreate evaluation times and a spline basis consistent with a fitted TDMM object.
Usage
make.tdmm.plot.grid(data, grid = NULL, n.grid = 100, time.var = "time", nknots = NULL, degree = 3, n_basis = NULL,
result = NULL)Arguments
- data
Data frame with one row per observation when
resultis NULL; may be NULL whenresultis supplied.- grid
Optional numeric evaluation times.
- n.grid
Number of points when grid is NULL.
- time.var
Observation-time column name.
- nknots
Deprecated
nknotsargument.- degree
Spline degree for new grids.
- n_basis
Number of basis functions for new grids.
- result
Optional fitted tdmm object whose spline metadata is authoritative.
Details
When result is supplied, its stored spline convention, degree, basis dimension, and time domain are used for reconstruction.