getWeightedConsensus: Estimate a weighted mean/median of a sample of Curves

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/getWeightedConsensus.R

Description

Instead of a simple rowMeans, this functions estimates a Weighted consensus of a sample of Curves

Usage

1
getWeightedConsensus(Curves, abscissa)

Arguments

Curves

A matrix of curves, with the columns being the curves

abscissa

The x-axis

Details

First an L1-median is estimated, then kma.similarity is estimated between the curves and the L1-median. This similarity is used as weights to estimate weighted consensus.

Value

Mean_Weighted

Weighted mean

Median_Weighted

Weighted median

Author(s)

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

See Also

L1median, rowMeans, rowWeightedMedians, rowWeightedMeans

Examples

1
2
3
data( growth, package = 'fda' )
Mat1 <- growth[['hgtm']]
Arguments <- growth[['age']]

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