Z_Eti design matrix for etiology regression on dates.
Arguments
Rdate
a vector of dates of R format
Y
Binary case/control status; 1 for case; 0 for controls
basis
ncs for natural cubic splines; ps for penalized-splines based
on B-spline basis functions (NB: baker does not recommend setting ncs using
this function; use splines::ns)
dof
Degree-of-freedom for the bases. For ncs basis, dof is
the number of columns; For ps basis, the number of columns is dof
if intercept=TRUE; dof-1 if FALSE.