Description Usage Arguments Value See Also
s_date_Eti
creates design matrices for etiology regressions;
1 | s_date_Eti(Rdate, Y, basis = "ps", dof = ifelse(basis == "ncs", 5, 10), ...)
|
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, |
... |
Other arguments as in |
Z_Eti
design matrix for etiology regression on dates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.