optimTransitionCluster: optimTransitionCluster

Description Usage Arguments See Also

Description

Splits the data set according to clusterids and calculates Transition matrices for each cluster individually

Usage

1
2
optimTransitionCluster(Old, New, Transition = NA, iterations = 1000,
  epsilon = 1e-07, alpha = NA, documentation = FALSE, clusterids)

Arguments

Old

m by n matrix of values for n choices in m districts

New

m by p matrix of values for n choices in m districts

Transition

n by b matrix of transition values, all should be positive, row sums should be one

epsilon

'ε'-value for numerical approximation of gradient, defaults to 0.0000001

alpha

step size α, defaults to .01 / initial error

See Also

optimTransition


chrisschwer/voterTransition-package documentation built on May 13, 2019, 6:56 p.m.