Description Usage Arguments Value See Also Examples
This function implements the standard regression calibration estimator, based on replicated measurements.
1 |
W |
A list of length 'k' containing matrices of error-prone proxy measurements of the covariate. Matrices should all be n (observations) x p (dimension of covariates). |
Z |
A matrix containing all error-free covariates for use in estimation. Matrix should be n (observations) x q (dimension). Use NULL if no such covariates exist. Defaults to NULL. |
return_var |
A boolean represent whether the correction function and weights should be returned (TRUE) or only the imputed values. Defaults to FALSE. |
Either a matrix of imputed values of size n x p (if return_var is FALSE), or a list which contains elements $X.hat (the aforementioned imputed matrix), $fitRC (a function which can be used to make the same correction), and $weights (the weights used in the correction).
[rcalibration::generalizedRC()] which this function is just a wrapper for
1 | generalizedRC(W, weights="equal")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.