compare | R Documentation |
Compare Predictive Performance of Two Models
compare(
yhat1,
yhat2,
n_rep = 1000,
conf = 0.95,
parallel_type = NULL,
n_cores = NULL,
cl = NULL,
...
)
## S3 method for class 'cross_valid'
compare(
yhat1,
yhat2,
n_rep = 1000,
conf = 0.95,
parallel_type = NULL,
n_cores = NULL,
cl = NULL,
...
)
## S3 method for class 'numeric'
compare(
yhat1,
yhat2,
n_rep = 1000,
conf = 0.95,
parallel_type = NULL,
n_cores = NULL,
cl = NULL,
y,
...
)
## S3 method for class 'beset'
compare(
yhat1,
yhat2,
n_rep = 1000,
conf = 0.95,
parallel_type = NULL,
n_cores = NULL,
cl = NULL,
...
)
## S3 method for class 'lm'
compare(
yhat1,
yhat2,
n_rep = 1000,
conf = 0.95,
parallel_type = NULL,
n_cores = NULL,
cl = NULL,
...
)
## S3 method for class 'zeroinfl'
compare(yhat1, yhat2, ...)
yhat1 |
A data frame consisting of cross-validated predictions from a
benchmark model, an object containing such a data frame, e.g., a
"cross_valid" object returned by |
yhat2 |
An object of the same type as |
n_rep |
|
conf |
Confidence level for the difference between model performance. |
parallel_type |
(Optional) character string indicating the type of
parallel operation to be used, either |
n_cores |
Integer value indicating the number of workers to run in
parallel during subset search and cross-validation. By default, this will
be set to one fewer than the maximum number of physical cores you have
available, as indicated by |
cl |
(Optional) |
compare(cross_valid)
: S3 method for class 'cross_valid'
compare(numeric)
: S3 method for class 'numeric'
compare(beset)
: two 'beset' class models
compare(lm)
: two 'glm' or 'lm' class models
compare(zeroinfl)
: two 'zeroinfl' class models
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.