model_summarise | R Documentation |
Summarise a model with statistics indicators
model_summarise(
data,
x = "x",
y = "y",
digits = NULL,
direction = c("wide", "long"),
extra = FALSE,
.groups = "drop",
...
)
data |
A data frame to summarise |
x |
x variable name |
y |
y variable name |
digits |
integer indicating the number of decimal places (round) or significant digits (signif) to be used. |
direction |
the wide (default) or long format for the output |
extra |
summarise extra variables. |
.groups |
Grouping structure passing to |
... |
other arguments passing to functions. Supporting arguments
|
A data frame with statistics indicators in columns including:
n: Number of rows
r: Coefficient of correlation
r2: Squared coefficient of correlation
bias: Average amount by which actual is greater than predicted
mse: Average squared difference
rmse: Root mean squared error
nrmse: Normalized root mean squared error
d: Willmott degree of agreement
error7day: Percentabe of errors less than 7 days if extra
is TRUE
library(dplyr)
data <- data.frame(x = 1:10, y = 1:10 + runif(10))
data %>% model_summarise()
data %>% model_summarise(digits = 2)
# Export as long format
data %>% model_summarise(digits = 2, direction = "long")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.