Description Usage Arguments Value Author(s) Examples
View source: R/MeasErrorRandom.R
This function creates a random measurement error object, usually used as
a covariate in the formula
argument of mecor if one
wants to correct for random measurement error in that variable
1 | MeasErrorRandom(substitute, variance)
|
substitute |
a vector containing the error-prone measure |
variance |
a numeric quantifying the assumed variance of the random measurement error |
MeasErrorRandom
returns an object of class
"MeasErrorRandom".
An object of class MeasErrorRandom
is a list containing the substitute
variable, the assumed variance of the random measurement error in that variable and, the
attributes input (the name of the substitute variable) and call (the matched
call).
Linda Nab, l.nab@lumc.nl
1 2 3 4 | ## random measurement error in a covariate:
# internal covariate-validation study
data(bloodpressure)
with(bloodpressure, MeasErrorRandom(sbp30, variance = 0.25))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.