Learn R Programming

LabourMarketAreas (version 3.4)

CompareLMAsStat: CompareLMAsStat

Description

This function computes several statistics to be used for comparing partitions, e.g. for parameter selection.

Usage

CompareLMAsStat(list.lma,dat)

Value

A matrix containing the quality statistics computed by the StatClusterData function.

Arguments

list.lma

list of LMAs to be compared. Each component of the list is a list of at least two components: lma and param (see the output of the function findCluster). The lma component is a list of three data.tables: clusterList, LWClus and marginals (the names should have not been assigned; otherwise use function DeleteLmaName). The param is a numeric vector containing the parameters of the corresponding LMAs, i.e. minSZ, minSC, tarSZ, tarSC.

dat

data frame/data.table with the original commuting flows between communities. It contains three columns: community_live, community_work and amount.

Author

Daniela Ichim, Luisa Franconi, Michele D'Alo'

See Also

findClusters, StatClusterData