forked from tidymodels/parsnip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathother_predict.Rd
82 lines (65 loc) · 2.76 KB
/
other_predict.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict_class.R, R/predict_classprob.R,
% R/predict_hazard.R, R/predict_interval.R, R/predict_linear_pred.R,
% R/predict_numeric.R, R/predict_quantile.R, R/predict_survival.R,
% R/predict_time.R
\name{predict_class.model_fit}
\alias{predict_class.model_fit}
\alias{predict_classprob.model_fit}
\alias{predict_hazard.model_fit}
\alias{predict_confint.model_fit}
\alias{predict_linear_pred.model_fit}
\alias{predict_linear_pred}
\alias{predict_numeric.model_fit}
\alias{predict_numeric}
\alias{predict_quantile.model_fit}
\alias{predict_survival.model_fit}
\alias{predict_survival}
\alias{predict_time.model_fit}
\alias{predict_time}
\title{Other predict methods.}
\usage{
\method{predict_class}{model_fit}(object, new_data, ...)
\method{predict_classprob}{model_fit}(object, new_data, ...)
\method{predict_hazard}{model_fit}(object, new_data, time, ...)
\method{predict_confint}{model_fit}(object, new_data, level = 0.95, std_error = FALSE, ...)
\method{predict_linear_pred}{model_fit}(object, new_data, ...)
predict_linear_pred(object, ...)
\method{predict_numeric}{model_fit}(object, new_data, ...)
predict_numeric(object, ...)
\method{predict_quantile}{model_fit}(object, new_data, quantile = (1:9)/10, ...)
\method{predict_survival}{model_fit}(object, new_data, time, ...)
predict_survival(object, ...)
\method{predict_time}{model_fit}(object, new_data, ...)
predict_time(object, ...)
}
\arguments{
\item{object}{An object of class \code{model_fit}}
\item{new_data}{A rectangular data object, such as a data frame.}
\item{...}{Arguments to the underlying model's prediction
function cannot be passed here (see \code{opts}). There are some
\code{parsnip} related options that can be passed, depending on the
value of \code{type}. Possible arguments are:
\itemize{
\item \code{level}: for \code{type}s of "conf_int" and "pred_int" this
is the parameter for the tail area of the intervals
(e.g. confidence level for confidence intervals).
Default value is 0.95.
\item \code{std_error}: add the standard error of fit or prediction (on
the scale of the linear predictors) for \code{type}s of "conf_int"
and "pred_int". Default value is \code{FALSE}.
\item \code{quantile}: the quantile(s) for quantile regression
(not implemented yet)
\item \code{time}: the time(s) for hazard and survival probability estimates.
}}
\item{level}{A single numeric value between zero and one for the
interval estimates.}
\item{std_error}{A single logical for whether the standard error should be
returned (assuming that the model can compute it).}
\item{quant}{A vector of numbers between 0 and 1 for the quantile being
predicted.}
}
\description{
These are internal functions not meant to be directly called by the user.
}
\keyword{internal}