match.groups: Create a group of names all similar to each other

Description Usage Arguments Details

Description

Creates a group of names with n members from two groups, such that all names are as similar to each other as possible. Names are not only similar across groups but also to each other in the group.

Usage

1
2
match.groups(split, n, discard = 0, subset = filter.names(),
  ga.params = list(), ...)

Arguments

split

The name of the rating on which the split should be performed

n

Number of names from each group to select

discard

The percentage of names too close to the median which should be discarded (default: 0, i.e. keep all names)

subset

An optional subset on which the split should be done. If this is left out, the split will be created on all names.

ga.params

Parameters to genetic algorithm

penalty.factor

How strongly to penalize candidate solution, which do not have the right number of names. Increase, if the wrong number of names is returned repeatedly

init.factor

How many more names to include initialy to increase the search space.

maxiter

Maximal number of iterations. See ga for details.

run

Number of consecutive generations without improvement. See ga for details.

popSize

Initial population size. See ga for details.

pmutation

Mutation probability. See ga for details.

pcrossover

Crossover probability. See ga for details.

elitism

Number of best candidates to keep each iteration. See ga for details.

parallel

Should the GA run in parallel? See ga for details.

monitor

Monitor function. See ga for details.

...

Arguments passed on to names.dist

x

The object containing the names

Details

Uses a genetic algorithm to find the best names, so different results may be found each run.

To seed the genetic algorithm with well suited sets, first random sets of names are created. To increase the search space, more names are selected than will later be retrieved for each of the partitions. The number of additional names, which are included is controlled by a ga.param value.


aggloeckner/GerNameR documentation built on May 20, 2019, 8:01 p.m.