
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
MeasErrorRandom(substitute, variance)
a vector containing the error-prone measure
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).
# NOT RUN {
## random measurement error in a covariate:
# internal covariate-validation study
data(bloodpressure)
with(bloodpressure, MeasErrorRandom(sbp30, variance = 0.25))
# }
Run the code above in your browser using DataLab