iteration: Iteration step for the Splitting-Coalescence-Estimation...

Description Usage Arguments Value Examples

View source: R/iteration.R

Description

This function performs the iteration step. Detailed description can be found in Chazin et al. 2019, Supplemental Materials 1.

Usage

1
iteration(paths, U, bandwidth)

Arguments

paths

A list of data frames, where each frame contains the data for one individual. Every data frame should have two columns with names 'distance' and 'oxygen'.

U

A list of vectors. Each element in the list is a vector of integers, corresponding to individuals considered in one group.

bandwidth

Denotes the order of the bandwidth that should be used in the estimation process. bandwidth = k will mean that the bandwidth is n^k.

Value

A list containing the following components:

S1

A set of individuals who are in the cluster

U

A set of individuals to be used in the next iteration.

Examples

1
2
3
4
5
6
7
## Not run: 
armenia_split = split(armenia,f = armenia$ID)
band = -0.33
p = length(armenia_split)
iteration(armenia_split,1:p,band)

## End(Not run)

SCEM documentation built on Sept. 5, 2021, 5:50 p.m.