Learn R Programming

MeasurementError.cor (version 1.44.0)

cor.me.vector: A function to calculate measurement error model estimates for correlation coefficient betweem two variables

Description

Given the observed value of two variables and their respective standard error, the measurement error estimate for their correlation coefficient is returned

Usage

cor.me.vector(exp1, se1, exp2, se2)

Arguments

exp1
observed value for vector 1
se1
estimated standard error for vector 1
exp2
observed value for vector 2
se2
estimated standard error for vector 2

Value

estimate
Vecotr containing the estimates from the measurement error model, i.e. cor.me, cor.true, mu1, mu2, s1, s2 which are correlation for the measurement error distribution of the two variables, true correlation between the two variables, and true mean and standard deviation estimates for the two variables respectively
count
numer of function and gradient evaluation
convergence
0 if converged. See optim() for details

Details

References

Ding, B.Y. and Gentleman, R. (2003) Measurement Error Model for correlation coefficient estimation and its application in microarray analysis

See Also

cor.me.matrix

Examples

Run this code
 exp <- matrix(abs(rnorm(200,1000,20)),ncol=10)
 se <- matrix(abs(rnorm(200,50,5)),ncol=10)
 cor.me.vector(exp[1,],se[1,],exp[2,],se[2,])

Run the code above in your browser using DataLab