dm_Rdate_FPR | R Documentation |
dm_Rdate_FPR
creates design matrices for false positive rate regressions;
can also be used to standardize dates.
dm_Rdate_FPR(Rdate, Y, effect = "fixed", num_knots_FPR = NULL)
Rdate |
a vector of dates of R format |
Y |
binary case/control status; 1 for case; 0 for controls |
effect |
The design matrix for "random" or "fixed" effect; Default
is "fixed". When specified as "fixed", it produces standardized R-format dates
using control's mean and standard deviation; When specified as "random", it produces
|
num_knots_FPR |
number of knots for FPR regression; default is |
Design matrix for FPR regression:
Z_FPR_ctrl
transformed design matrix for FPR regression for controls
Z_FPR_case
transformed design matrix for borrowing FPR
regression from controls to cases. It is obtained using control-standardization,
and square-root the following matrix (\Omega
]) with (j_1
,j_2
) element being
\Omega_{j_1j_2}=\|knots_{j_1}-knots_{j_2}\|^3
.
nplcm()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.