EM: EM algorithm

Description Usage Arguments Value

View source: R/EM.R

Description

Performs the update from function EM_step_step n times. A threshold is defined such that the function will break if the change in lambda is smaller than the threshold value.

Usage

1
EM(W,nsteps,a,b,eps)

Arguments

W

(KxK) matrix where the (i,j) element is number of matches player i has beaten player j.

nsteps

number of iterations.

a

shape parameter for Gamma prior.

b

rate parameter for Gamma prior.

eps

threshold for change in lambda.

Value

The final estimates of lambdas.


ss15859/tennis.wta documentation built on Jan. 24, 2021, 12:46 a.m.