Learn R Programming

hyper2 (version 2.0-1)

zapweak: Zap weak competitors

Description

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

Usage

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

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()

Value

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

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
# NOT RUN {
 zapweak(icons)        # removes noone
# }
# NOT RUN {
#Takes too long
 zapweak(rowing)   # removes everyone...
# }

Run the code above in your browser using DataLab