Learn R Programming

hyper2 (version 3.0-0)

zapweak: Zap weak competitors

Description

Given a hyper2 object, discard competitors with a small estimated strength.

Usage

zapweak(H, minstrength = 1e-05, maxit, ...)

Value

Returns a slimmed-down hyper2 object with weak players removed.

Arguments

H

Object of class hyper2

minstrength

Strength below which to discard competitors

maxit

Maximum number of iterations; if missing, use size(H)-1

...

Further arguments, passed to maxp()

Author

Robin K. S. Hankin

Details

Iteratively discards the weakest player (if the estimated strength is less than minstrength) using discard_flawed(). maxp(..,n=1) for efficiency.

See Also

discard_flawed,maxp

Examples

Run this code
 zapweak(icons)        # removes noone
#Takes too long
 zapweak(rowing)   # removes everyone...

Run the code above in your browser using DataLab