From 965af33bfc386b0c96a50c85fbddf98211e266c4 Mon Sep 17 00:00:00 2001 From: ranke Date: Tue, 15 Feb 2005 19:15:54 +0000 Subject: Cleaned up version, only containing very basic stuff. git-svn-id: http://kriemhild.uft.uni-bremen.de/svn/chemCal@2 5fad18fb-23f0-0310-ab10-e59a3bee62b4 --- man/predictx.Rd | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 man/predictx.Rd (limited to 'man/predictx.Rd') diff --git a/man/predictx.Rd b/man/predictx.Rd new file mode 100644 index 0000000..a3946b0 --- /dev/null +++ b/man/predictx.Rd @@ -0,0 +1,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} -- cgit v1.2.3