-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetPredType.Rd
29 lines (27 loc) · 985 Bytes
/
GetPredType.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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ModelGeneration.R
\name{GetPredType}
\alias{GetPredType}
\title{A helper function used by the predict function. Since the many types of models are not
uniform in how they are called, this function determines what values to pass into "type"
and then returns the predictions.}
\usage{
GetPredType(model, newdata)
}
\arguments{
\item{model}{The model to be used for prediction}
\item{newdata}{A dataframe for the model to predict on}
}
\value{
The predictions for the model on the given data, returned in dataframe format
}
\description{
A helper function used by the predict function. Since the many types of models are not
uniform in how they are called, this function determines what values to pass into "type"
and then returns the predictions.
}
\examples{
# This function is used by predict.ModelComparison. It's usage is as follows:
# pred.basic[[i]] = GetPredType(model, newdata)
}
\keyword{internal}