compileIndex | R Documentation |
read vectors to calculate diagonal zero inflated bivariate poisson possibility and returns a list
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
)
filename |
Relative filepath to the current working directory. This must be (*.zip) or it will throw an error. |
This function read 1 to 2 vectors and then calculate bivariate poisson possibility and returns a vector.
A list of dataset from the inputted *.RData file.
https://www.github.com/englianhu/Rmodel for calculate the possibility of bivariate poisson model.
Other Rmodel functions:
bvp()
,
compileIndex2()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.