permute_kmaSimilarity: Permutation test between two sets of curves

Description Usage Arguments Note Author(s) References See Also Examples

View source: R/permute_curveDist.R

Description

Permutation test between two sets of curves using similarity index

Usage

1
permute_kmaSimilarity(Mat1, Mat2, Nperm = 200, argvals, q = 0.05, D1 = TRUE)

Arguments

Mat1

Matrix 1 with each column being the discretized version of a separate curve

Mat2

Matrix 2 with each column being the discretized version of a separate curve

Nperm

Number of permutations. Default 200

argvals

The abscissa, the x-axis or the time-axis. The length of this should be the same as the number of rows of Mat1 and Mat2

q

0.05 or an appropriate α level

D1

TRUE/FALSE whether the matrix contains the curves of derivatives of the curves. TRUE if contains derivatives.

Note

This is an extension of the function fdakma::kma.similarity. This is using ρ to test similarity between two sets of curves.

Author(s)

Subhrangshu Nandi; Statistics PhD student, UW Madison; snandi@wisc.edu or nands31@gmail.com

References

Parodi, A., et al. "fdakma: Functional data analysis: K-mean alignment." R package version 1.1 (2014).

https://cran.r-project.org/web/packages/fdakma/index.html

See Also

fdakma::kma.similarity

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data( growth, package = 'fda' )
Mat1 <- growth[['hgtm']]
Mat2 <- growth[['hgtf']]
Arguments <- growth[['age']]
PermTestResults <- permute_kmaSimilarity(
  Mat1 = Mat1, 
  Mat2 = Mat2, 
  Nperm = 200,
  argvals = Arguments,
  q = 0.05
)
names(PermTestResults)

snandi/Registration documentation built on May 30, 2019, 5:04 a.m.