-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathens_roc.Rd
60 lines (53 loc) · 1.81 KB
/
ens_roc.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ens_roc.R
\name{ens_roc}
\alias{ens_roc}
\alias{ens_roc.harp_ens_point_df}
\title{Relative Operating Characteristics for an ensemble.}
\usage{
ens_roc(
.fcst,
parameter,
thresholds,
groupings = "lead_time",
show_progress = TRUE,
...
)
\method{ens_roc}{harp_ens_point_df}(
.fcst,
parameter,
thresholds,
groupings = "lead_time",
show_progress = TRUE,
fcst_model = NULL,
...
)
}
\arguments{
\item{.fcst}{A \code{harp_df} or \code{harp_list} object with tables that have a column
for observations, or a single forecast table.}
\item{parameter}{The name of the column for the observations data. Can be the
column name, quoted, or unquoted. If a variable it should be embraced -
i.e. wrapped in \code{{{}}}.}
\item{thresholds}{A numeric vector of thresholds for which to compute the
threshold based scores. Set to NULL (the default) to only compute summary
scores.}
\item{groupings}{The groups for which to compute the scores. See
\link[dplyr]{group_by} for more information of how grouping works.}
\item{show_progress}{Logical - whether to show progress bars. Defaults to
\code{TRUE}.}
\item{...}{Reserved for methods.}
\item{fcst_model}{The name of the forecast model to use in the \code{fcst_model}
column of the output. If the function is dispatched on a \code{harp_list}
object, the names of the \code{harp_list} are automatically used.}
}
\value{
A data frame with data grouped for the \code{groupings} column(s) and
a nested column for the ROC with each row containing a data frame with
columns: \code{prob} for the forecast probability bin, \code{HR} for the
hit rate and \code{FAR} for the false alarm rate. Use \link[tidyr]{unnest}
to unnest to the nested column.
}
\description{
Relative Operating Characteristics for an ensemble.
}