s_date_Eti {baker} | R Documentation |
Make Etiology design matrix for dates with R format.
Description
s_date_Eti
creates design matrices for etiology regressions;
Usage
s_date_Eti(Rdate, Y, basis = "ps", dof = ifelse(basis == "ncs", 5, 10), ...)
Arguments
Rdate |
a vector of dates of |
Y |
Binary case/control status; |
basis |
|
dof |
Degree-of-freedom for the bases. For |
... |
Other arguments as in |
Value
-
Z_Eti
design matrix for etiology regression on dates.
See Also
Examples
data("data_nplcm_reg_nest")
s_date_Eti(data_nplcm_reg_nest$X$DATE,data_nplcm_reg_nest$Y,basis='ps',dof=7)
[Package baker version 1.0.3 Index]