compileIndex: Read a Rmodel query

compileIndexR Documentation

Read a Rmodel query

Description

read vectors to calculate diagonal zero inflated bivariate poisson possibility and returns a list

Usage

compileIndex(
  l1 = FTHG ~ 1,
  l2 = FTAG ~ 1,
  l1l2 = ~c(Home, Away) + c(Away, Home),
  l3 = ~1,
  data,
  maxit = 300,
  xi = NULL,
  fordate = NULL,
  inflated = TRUE
)

Arguments

filename

Relative filepath to the current working directory. This must be (*.zip) or it will throw an error.

Details

This function read 1 to 2 vectors and then calculate bivariate poisson possibility and returns a vector.

Value

A list of dataset from the inputted *.RData file.

See Also

https://www.github.com/englianhu/Rmodel for calculate the possibility of bivariate poisson model.

Other Rmodel functions: bvp(), compileIndex2()

Examples

# this will stop
## Not run: 
compileIndex(FTHG ~ 1, FTAG ~ 1, ~c(Home, Away) + c(Away, Home),
data = sample, xi = 0.0065, fordate = '2010-08-12') 
## End(Not run)
#returns data as vector
#setwd(system.file("data", package = "Rmodel"))
#getwd()
## Not run: 
compileIndex(FTHG ~ 1, FTAG ~ 1, ~c(Home, Away) + c(Away, Home),
data = sample, xi = 0.0065, fordate = '2010-08-12') 
## End(Not run)
## Not run: 
em2008 = compileIndex(FTHG~1, FTAG~1, ~c(Home, Away) + c(Away, Home), data = eng2008f) 
## End(Not run)
## Not run: 
em2009 = compileIndex(FTHG~1, FTAG~1, ~c(Home, Away) + c(Away, Home), data = eng2009f) 
## End(Not run)
## Not run: 
em2010 = compileIndex(FTHG~1, FTAG~1, ~c(Home, Away) + c(Away, Home), data = eng2010f) 
## End(Not run)
## Not run: 
em2011 = compileIndex(FTHG~1, FTAG~1, ~c(Home, Away) + c(Away, Home), data = eng2011f) 
## End(Not run)
## Not run: 
em2012 = compileIndex(FTHG~1, FTAG~1, ~c(Home, Away) + c(Away, Home), data = eng2012f) 
## End(Not run)
## Not run: 
em2013 = compileIndex(FTHG~1, FTAG~1, ~c(Home, Away) + c(Away, Home), data = eng2013f) 
## End(Not run)

englianhu/Rmodel documentation built on March 20, 2024, 4:40 p.m.