MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/R/library/OREpredict/doc/man/zh_CN/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/R/library/OREpredict/doc/man/zh_CN/ore.predict-lm.Rd

%
% Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 
%
\name{ore.predict-lm}
\alias{ore.predict-lm}
\alias{ore.predict,lm-method}
\title{
使用 \code{\link[stats]{lm}} 模型的 Oracle R Enterprise 预测
}
\description{
用于使用 \code{\link[stats]{lm}} 模型生成预测的 Oracle R Enterprise
  方法。
}
\usage{
  \S4method{ore.predict}{lm}(object, newdata, se.fit = FALSE, scale = NULL, df = Inf,
            interval = c("none", "confidence", "prediction"),
            level = 0.95, na.action = na.pass, pred.var = NULL,
            weights = NULL, ...)
}
\arguments{
  \item{object}{
一个 \code{\link[stats]{lm}} 模型对象。
}
  \item{newdata}{
一个 \code{\link[OREbase:ore.frame-class]{ore.frame}}
    对象。
}
  \item{se.fit}{
一个用于指示是否为预测返回标准误差的
    逻辑值。
}
  \item{scale}{
预测的标准误差的标度参数。
}
  \item{df}{
参数 \code{scale} 不是 \code{NULL} 时的预测的
    自由度。
}
  \item{interval}{
要返回的区间的类型, 可以为 \code{"none"},
    \code{"confidence"} 或 \code{"prediction"}。
}
  \item{level}{
参数 \code{interval} 的级别。
}
  \item{na.action}{
处理 \code{NA} 值的方式,
    \code{na.omit} 或 \code{na.pass}。
}
  \item{pred.var}{
参数 \code{interval} 为 \code{"prediction"} 时,
    一次观察的方差。
}
  \item{weights}{
参数 \code{interval} 为 \code{"prediction"},
    参数 \code{pred.val} 为 \code{NULL} 并且
    \code{object$weights} 不是 \code{NULL} 时, 则为预测的
    方差权重, 可以是
    \code{\link[OREbase:ore.numeric-class]{ore.numeric}} 对象或者
      引用参数 \code{\link[stats]{formula}} 中数据的
      单侧模型 \code{newdata}。
}
  \item{\dots}{
可选参数。
}
}

\value{
参数 \code{se.fit} 为 \code{FALSE} 并且参数
  \code{interval} 为 \code{"none"} 时, 返回
  包含预测的 \code{\link[OREbase:ore.numeric-class]{ore.numeric}}
  对象。
  否则返回 
  \code{\link[OREbase:ore.frame-class]{ore.frame}} 对象, 最多有
  四列: \code{"PRED"}, \code{"SE.PRED"} (参数
  \code{se.fit} 为 \code{TRUE} 时), \code{"LOWER.CONF"} 和
  \code{"UPPER.CONF"} (参数 \code{interval} 为
  \code{"confidence"} 时) 以及 \code{"LOWER.PRED"} 和 \code{"UPPER.PRED"}
  (参数 \code{interval} 为 \code{"prediction"} 时)。
}
\references{
  \href{http://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/documentation/index.html}{Oracle R Enterprise}
}
\note{
  Use of date/time terms in this method will result in an error.  
}
\author{
  Oracle \email{oracle-r-enterprise@oracle.com}
}
\seealso{
  \code{\link{ore.predict}},
  \code{\link{ore.predict-glm}},
  \code{\link[stats]{predict.lm}}.
}
\examples{
irisModel <- lm(Sepal.Length ~ ., data = iris)
IRIS <- ore.push(iris)
IRISpred <- ore.predict(irisModel, IRIS, se.fit = TRUE,
                        interval = "prediction")
IRIS <- cbind(IRIS, IRISpred)
head(IRIS)
}
\keyword{models}
\keyword{regression}

OHA YOOOO