View source: R/Index_functions.R
Index.Grid | R Documentation |
Index.Grid
Index.Grid( X, X.type, X.name, covariates, type, bin.length = 17, cont.length = 51 )
X |
numeric vector representing the primary covariate of interest. As such, this is the variable you are wanting to get a predicted "effect" for over a range of values this variable can take. |
X.type |
character vector defining structure of the |
X.name |
character string defining the name of the |
covariates |
numeric list containing additional covariates included in the final models being considered |
type |
character vector defining structure of each covariate. It must
be the same length as the
|
bin.length |
numeric value representing the number of discrete points of
each continuous covariate to use in the prediction frame. Recommendation
is to use an odd number such that the median of the range of the contiuous
variable is used. Function used the value to choose n = |
cont.length |
numeric value representing the number of discrete points
of each continuous covariate to use in the prediction frame.
Recommendation is to use an odd number such that the median of the range of
the contiuous variable is used. Function used the value to choose n =
|
list the same length as models
that contains summary
statistics for each model explored
Other Model Evaluation:
Index.Summary()
,
disp()
X <- factor(sample(c(seq(1990, 2015, 1)), size = 10000, replace = TRUE)) df <- data.frame(depth = rnorm(n = 10000, mean = 0, sd = 1), temp = rnorm( n = 10000, mean = 0, sd = 0.5), lat = rnorm(n = 10000, mean =0, sd = 3)) Index.Grid(X = X, X.type = "factor", X.name = "Year", covariates = df, type = rep("mean", 3)) Index.Grid(X = X, X.type = "factor", X.name = "Year", covariates = df, type = rep("numeric", 3), bin.length = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.