s_date_FPR: Make false positive rate (FPR) design matrix for dates with R...

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

s_date_FPR creates design matrices for FPR regressions;

Usage

1
s_date_FPR(Rdate, Y, basis = "ps", dof = 10, ...)

Arguments

Rdate

a vector of dates of R format

Y

Binary case/control status; 1 for case; 0 for controls

basis

"ps" for penalized-splines based on B-spline basis functions

dof

Degree-of-freedom for the bases.For "ps" basis, the number of columns is dof if intercept=TRUE; dof-1 if FALSE.

...

Other arguments as in splines::bs()

Value

Design matrix for FPR regression, with cases' rows on top of controls'.

See Also

nplcm()

Examples

1
2

baker documentation built on Feb. 2, 2022, 9:06 a.m.