https://github.com/cran/convoSPAT
Revision 5f75258a89541e5d34635e6f30b9e27ac6b16815 authored by Mark D. Risser on 03 November 2017, 15:53:59 UTC, committed by cran-robot on 03 November 2017, 15:53:59 UTC
1 parent 2ecb9ba
Raw File
Tip revision: 5f75258a89541e5d34635e6f30b9e27ac6b16815 authored by Mark D. Risser on 03 November 2017, 15:53:59 UTC
version 1.2.4
Tip revision: 5f75258
predict.NSconvo.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convoSPAT_fitpred.R
\name{predict.NSconvo}
\alias{predict.NSconvo}
\title{Obtain predictions at unobserved locations for the nonstationary
spatial model.}
\usage{
\method{predict}{NSconvo}(object, pred.coords, pred.covariates = NULL,
  pred.fixed.nugg2.var = NULL, ...)
}
\arguments{
\item{object}{A "NSconvo" object, from \code{NSconvo_fit}.}

\item{pred.coords}{Matrix of locations where predictions are required.}

\item{pred.covariates}{Matrix of covariates for the prediction locations,
NOT including an intercept. The number of columns for this matrix must
match the design matrix from \code{mean.model} in \code{\link{NSconvo_fit}}.
Defaults to an intercept only.}

\item{pred.fixed.nugg2.var}{An optional vector or matrix describing the
the variance/covariance a fixed second nugget term (corresponds to
\code{fixed.nugg2.var} in \code{NSconvo_fit}; often useful if conducting
prediction for held-out data). Defaults to zero.}

\item{...}{additional arguments affecting the predictions produced.}
}
\value{
A list with the following components:
\item{pred.means}{Vector of the kriging predictor, for each location in
\code{pred.coords}.}
\item{pred.SDs}{Vector of the kriging standard errors, for each location
in \code{pred.coords}.}
}
\description{
\code{predict.NSconvo} calculates the kriging predictor and corresponding
standard errors at unmonitored sites.
}
\examples{
\dontrun{
pred.NS <- predict( NSconvo.obj,
pred.coords = matrix(c(1,1), ncol=2),
pred.covariates = matrix(c(1,1), ncol=2) )
}

}

back to top