Learn R Programming

cccrm (version 1.1)

cccvc: Concordance Correlation Coefficient by Variance Components

Description

Estimates the concordance correlation coefficient through the variance components of a linear mixed model

Usage

cccvc(dataset,ry,rind,rmet,covar=NULL,int=FALSE)
cccvc1(dataset,ry,rind,rmet,covar=NULL)
## S3 method for class 'default':
cccvc1(dataset,ry,rind,rmet,covar=NULL)
## S3 method for class 'cccvc1':
print(x,...)
## S3 method for class 'cccvc1':
summary(object,...)
## S3 method for class 'summary.cccvc1':
print(x,...)
cccvc2(dataset,ry,rind,rmet,covar=NULL)
## S3 method for class 'default':
cccvc2(dataset,ry,rind,rmet,covar=NULL)
## S3 method for class 'cccvc2':
print(x,...)
## S3 method for class 'cccvc2':
summary(object,...)
## S3 method for class 'summary.cccvc2':
print(x,...)

Arguments

dataset
Name of data set
ry
Character string indicating the outcome in data set
rind
Character string indicating the subject variable in data set
rmet
Character string indicating the method variable in data set
covar
Character vector indicating the covariables
int
Boolean value indicating whether the Subject-Method interaction is included in the model
x
Object class cccvc
object
Object class cccvc
...
other arguments to be passed to print or summary

Value

  • An object of class cccvc.The generic function print and summary gives the estimates of the concordance correlation coefficient. The object cccvc contains the following components:
  • modelLinear mixed model output
  • vcVariance Components estimates
  • sigmaAn approximate covariance matrix for the variance components
  • ccc.pThe Concordance Correlation Coefficient estimate
  • ccc.iVector containing the Concordance Correlation Coefficient estimate, standard error, 95 percent confidence intervals. Additionally Z Fisher's transformation and its standard error are provided

References

Carrasco, J. L., Jover, L. (2003). Estimating the generalized concordance correlation coefficient through variance components. Biometrics 59 849 858 Carrasco, J. L., King, T. S., and Chinchilli, V. M. (2009). The concordance correlation coefficient for repeated measures estimated by variance components. Journal of Biopharmaceutical Statistics 19, 90 105.

Examples

Run this code
data(bpres)

#Case without interaction

result1<-cccvc(bpres,"DIA","ID","METODE")
result1

summary(result1)

#Case adjusted by covariates

result2<-cccvc(bpres,"DIA","ID","METODE",cov=c("EDAD","SEXO"))
result2

summary(result2)

Run the code above in your browser using DataLab