Rev 3733 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
%%% $Id: Eckerle4.Rd,v 1.4 2003/07/22 19:42:20 bates Exp $\name{Eckerle4}\alias{Eckerle4}\non_function{}\title{Circular interference data}\description{The \code{Eckerle4} data frame has 35 rows and 2 columns givingtransmittance as a function of wavelength.}\format{This data frame contains the following columns:\describe{\item{y}{A numeric vector of transmittance values.}\item{x}{A numeric vector of wavelengths.}}}\details{These data are the result of a NIST study involvingcircular interference transmittance. The responsevariable is transmittance, and the predictor variableis wavelength.}\source{Eckerle, K., NIST (197?).Circular Interference Transmittance Study.}\examples{Try <- function(expr) if (!inherits(val <- try(expr), "try-error")) valplot(y ~ x, data = Eckerle4)## should fail - ridiculous starting value for b3Try(fm1 <- nls(y ~ (b1/b2) * exp(-0.5*((x-b3)/b2)**2), Eckerle4,trace = TRUE,start = c(b1 = 1, b2 = 10, b3 = 500)))Try(fm1a <- nls(y ~ (b1/b2) * exp(-0.5*((x-b3)/b2)**2), Eckerle4,trace = TRUE, alg = "port",start = c(b1 = 1, b2 = 10, b3 = 500)))Try(fm2 <- nls(y ~ (b1/b2) * exp(-0.5*((x-b3)/b2)**2),Eckerle4, trace = TRUE,start = c(b1 = 1.5, b2 = 5, b3 = 450)))Try(fm2a <- nls(y ~ (b1/b2) * exp(-0.5*((x-b3)/b2)**2),Eckerle4, trace = TRUE, alg = "port",start = c(b1 = 1.5, b2 = 5, b3 = 450)))## should fail - ridiculous starting value for b3Try(fm3 <- nls(y ~ (1/b2) * exp(-0.5*((x-b3)/b2)**2),Eckerle4, trace = TRUE,start = c(b2 = 10, b3 = 500), algorithm = "plinear"))Try(fm4 <- nls(y ~ (1/b2) * exp(-0.5*((x-b3)/b2)**2), Eckerle4, trace = TRUE,start = c(b2 = 5, b3 = 450), algorithm = "plinear"))}\keyword{datasets}