dot-compare.Rd 1009 Bytes
Newer Older
Armin Rauschenberger's avatar
Armin Rauschenberger committed
1
% Generated by roxygen2: do not edit by hand
Armin Rauschenberger's avatar
Armin Rauschenberger committed
2
% Please edit documentation in R/functions.R
Armin Rauschenberger's avatar
Armin Rauschenberger committed
3
4
\name{.compare}
\alias{.compare}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
5
6
\title{Comparison}
\usage{
Armin Rauschenberger's avatar
Armin Rauschenberger committed
7
.compare(y, cutoff, X, alpha = 1, nfolds = 5, foldid = NULL,
Armin Rauschenberger's avatar
Armin Rauschenberger committed
8
  type.measure = "deviance")
Armin Rauschenberger's avatar
Armin Rauschenberger committed
9
10
11
12
13
14
15
16
17
18
19
}
\arguments{
\item{y}{continuous response\strong{:}
vector of length \eqn{n}}

\item{cutoff}{cutoff point for dichotomising response into classes\strong{:}
value between \code{min(y)} and \code{max(y)}}

\item{X}{covariates\strong{:}
numeric matrix with \eqn{n} rows (samples)
and \eqn{p} columns (variables)}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
20

Armin Rauschenberger's avatar
Armin Rauschenberger committed
21
22
23
\item{alpha}{elastic net mixing parameter\strong{:}
numeric between \eqn{0} (ridge) and \eqn{1} (lasso)}

Armin Rauschenberger's avatar
Armin Rauschenberger committed
24
\item{nfolds}{number of folds}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
25

Armin Rauschenberger's avatar
Armin Rauschenberger committed
26
27
28
29
\item{foldid}{fold identifiers\strong{:}
vector with entries between \eqn{1} and \code{nfolds};
or \code{NULL} (balance)}

Armin Rauschenberger's avatar
Armin Rauschenberger committed
30
31
\item{type.measure}{loss function for binary classification
(linear regression uses the deviance)}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
32
33
34
35
36
37
38
39
}
\description{
Compares models for a continuous response with a cutoff value
}
\examples{
NA

}