aboutsummaryrefslogtreecommitdiff
path: root/man/predictx.Rd
blob: a3946b0e0ca9ab7d3980162b0d2c142d3d64f63b (plain) (blame)
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
\name{predictx}
\alias{predictx}
\title{Predict x from y values for calibration models}
\description{
  This function predicts x values from y values, as in classical calibration,
  including a confindence interval.
}
\usage{
  predictx(m,yobs,level=0.95)
}
\arguments{
  \item{m}{
    A calibration model of type \code{\link{calm}}.
    }
  \item{yobs}{ 
    A vector of observed y values for one sample.
    }
  \item{level}{
    The confidence level for the confidence interval to be reported.
    }
}
\value{
  A vector containing the estimate (\code{estimate}), its estimated standard
  deviation (\code{sdxpred}), its estimated confidence (\code{confxpred}).
} 
\examples{
  data(din32645)
  m <- calm(din32645)
  r <- predictx(m,3500,level=0.95)
  cat("\nThe confidence interval is",r[["estimate"]],"+-",r[["confxpred"]],"\n")
}
\author{
  Johannes Ranke 
  \email{jranke@uni-bremen.de} 
  \url{http://www.uft.uni-bremen.de/chemie/ranke}
}
\keyword{regression}

Contact - Imprint