The Roszman1
data frame has 25 rows and 2 columns of data on the
number of quantum defects in iodine atoms at different energy states.
This data frame contains the following columns:
A numeric vector of number of quantum defects.
A numeric vector of the excited energy state.
These data are the result of a NIST study involving quantum defects in iodine atoms. The response variable is the number of quantum defects, and the predictor variable is the excited energy state. The argument to the ARCTAN function is in radians.
Roszman, L., NIST (19??). Quantum Defects for Sulfur I Atom.
1 2 3 4 5 6 7 8 9 10 11 12 13 14  Try < function(expr) if (!inherits(val < try(expr), "tryerror")) val
plot(y ~ x, data = Roszman1)
Try(fm1 < nls(y ~ b1  b2*x  atan(b3/(xb4))/pi, data = Roszman1,
start = c(b1 = 0.1, b2 = 0.00001, b3 = 1000, b4 = 100),
trace = TRUE))
Try(fm1a < nls(y ~ b1  b2*x  atan(b3/(xb4))/pi, data = Roszman1,
start = c(b1 = 0.1, b2 = 0.00001, b3 = 1000, b4 = 100),
alg = "port", trace = TRUE))
Try(fm2 < nls(y ~ b1  b2*x  atan(b3/(xb4))/pi, data = Roszman1,
start = c(b1 = 0.2, b2 = 0.0000015, b3 = 1200, b4 = 150),
trace = TRUE))
Try(fm2a < nls(y ~ b1  b2*x  atan(b3/(xb4))/pi, data = Roszman1,
start = c(b1 = 0.2, b2 = 0.0000015, b3 = 1200, b4 = 150),
alg = "port", trace = TRUE))

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.