crMatrixSD: Creat Data Matrices and Vectors for SD Method from a...

View source: R/crMatrixSD.R

crMatrixSDR Documentation

Creat Data Matrices and Vectors for SD Method from a Dataframe Containing Data Results from Soccer Matches

Description

This function creates data matrices and vectors (for sum and differences) from a dataframe containing results of soccer matches.

Usage

crMatrixSD(data)

Arguments

data

a data frame containing soccer matches database, where each line (observation) represent a soccer match, first variable must be Home team, second variable must be number of goals achieved by Home team, third variable must be number of gols achieved by Visitor team, fourth must be the Visitor team, and the fifth must indicate if there was a filed factor in the match ( represented by 0 for 'no' or 1 for 'yes')

Value

A list with two vectors: sum and dif; and two matrices: matS and matT.


ghesteves/soccerProbs documentation built on Sept. 17, 2022, 4:41 a.m.