s_date_Eti: Make Etiology design matrix for dates with R format.

Description Usage Arguments Value See Also

View source: R/utils.R

Description

s_date_Eti creates design matrices for etiology regressions;

Usage

1
s_date_Eti(Rdate, Y, basis = "ps", dof = ifelse(basis == "ncs", 5, 10), ...)

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.

...

Other arguments as in splines::bs()

Value

See Also

nplcm()


oslerinhealth/baker documentation built on May 22, 2021, 12:05 p.m.