`make_hrf` resolves a basis specification to an `HRF` object and applies an optional temporal lag. The basis may be given as the name of a built-in HRF, as a generating function, or as an existing `HRF` object.
Arguments
- basis
Character name of a built-in HRF, a function that generates HRF values, or an object of class `HRF`.
- lag
Numeric scalar giving the shift in seconds applied to the HRF.
- nbasis
Number of basis functions. `NULL` (the default) gives a basis-set name such as `"bspline"` or `"fir"` the default size used by [getHRF()], and a plain function as many basis functions as the columns it returns. Ignored for fixed HRFs such as `"spmg1"` or an `HRF` object.