Description Format Details Source Examples
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), "try-error")) val
plot(y ~ x, data = Roszman1)
Try(fm1 <- nls(y ~ b1 - b2*x - atan(b3/(x-b4))/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/(x-b4))/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/(x-b4))/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/(x-b4))/pi, data = Roszman1,
start = c(b1 = 0.2, b2 = -0.0000015, b3 = 1200, b4 = -150),
alg = "port", trace = TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.