EM_step: One step of EM algorithm

Description Usage Arguments Value

View source: R/EM.R

Description

One step of EM algorithm

Usage

1
EM_step(lambda,W,a,b,K,n)

Arguments

lambda

current values for the estimates of lambda.

W

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

a

shape parameter for Gamma prior.

b

rate parameter for Gamma prior.

K

number of players.

n

W + t(W) - (i,j) element is total number of times player i has played player j.

Value

Updated estimate of lambdas.


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