AUCest.Reiser {correctedAUC} | R Documentation |
Calculate AUC corrected for measurement error based on Reiser's (2000) method
Description
Calculate AUC corrected for measurement error based on Reiser's (2000) method.
Usage
AUCest.Reiser(
datFrame,
sidVar = "subjID",
obsVar = "y",
grpVar = "grp",
repVar = "myrep",
alpha = 0.05)
Arguments
datFrame |
a data frame with at least the following columns:
|
sidVar |
character. variable name for subject id in the data frame |
obsVar |
character. variable name for observations in the data frame |
grpVar |
character. variable name for group indictor in the data frame |
repVar |
character. variable name for replication indictor in the data frame |
alpha |
confidence interval level |
Value
A list of 4 elements
AUC.c |
AUC corrected for measurement error based on Reiser's (2000) method. |
sd.AUC.c |
standard error of the estimated AUC corrected for measurement error based on Reiser's (2000) method. |
AUC.c.low |
lower bound of the |
AUC.c.upp |
upper bound of the |
Author(s)
Bernard Rosner <stbar@channing.harvard.edu>, Shelley Tworoger <nhsst@channing.harvard.edu>, Weiliang Qiu <stwxq@channing.harvard.edu>
References
Rosner B, Tworoger S, Qiu W (2015) Correcting AUC for Measurement Error. J Biom Biostat 6:270. doi:10.4172/2155-6180.1000270
Examples
set.seed(1234567)
tt=genSimDataReiser(
nX = 100,
nY = 100,
sigma.X2 = 1,
mu.X = 0.25,
sigma.Y2 = 1,
mu.Y = 0,
sigma.epsilon2 = 0.5,
sigma.eta2 = 0.5)
print(dim(tt$datFrame))
print(tt$datFrame[1:2,1:3])
print(tt$theta2)
print(tt$mu.true)
print(tt$AUC.true)
res = AUCest.Reiser(
datFrame = tt$datFrame,
sidVar = "subjID",
obsVar = "y",
grpVar = "grp",
repVar = "myrep",
alpha = 0.05)
print(res)