Newer
Older
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rmse.R
\name{compute_rmse}
\alias{compute_rmse}
\title{Compute RMSE values on grouped data}
\usage{
compute_rmse(data, grouping_by = c("from", "description"))
}
\arguments{
\item{data}{A data frame containing the variables 'actual' and 'estimate' for regression.}
\item{grouping_by}{A character vector specifying the grouping variables}
}
\value{
A data frame with columns 'from', 'term', and 'RMSE' representing the grouping variables
and the corresponding RMSE values.
}
\description{
This function takes a data frame, performs RMSE between estimate and actual values on specified grouping variables,
}
\examples{
data <- data.frame(from = c("A", "A", "A", "A"),
term = c("X", "Y", "X", "Y"),
actual = c(1, 2, 3, 4),
estimate = c(1.5, 2.5, 3.5, 4.5))
compute_rmse(data, grouping_by = c("from", "term"))
}