get.fun.cor: Compute the functional Pearson's correlation and concordance...

Description Usage Arguments Value Examples

View source: R/getfuncor.R

Description

Compute the functional Pearson's correlation coefficient and concordance correlation coefficeint of two data sets and the corresponding standard errors.

Usage

1
get.fun.cor(X, Y, W = NULL)

Arguments

X:

matrix with columns being time points and rows being subjects

Y:

matrix with columns being time points and rows being subjects, same size as X

W:

weight matrix, same size as X and Y. By default, weight is the same for all data points

Value

rho: functional Pearson's correlation coefficient

ccc: functional concordance correlation coefficient

rho.se: standard error of functional Pearson's correlation coefficient

ccc.se: standard error of functional concordance correlation coefficient

Examples

1
2
3
4
x = matrix(rnorm(12), 3, 4)
y = matrix(rnorm(12), 3, 4)
w = matrix(1, 3, 4)
get.fun.cor(x,y,w)

TwoLittle/fccc documentation built on June 13, 2020, 10:18 a.m.