Description Format Details Source Examples
The Thurber
data frame has 37 rows and 2 columns.
This data frame contains the following columns:
A numeric vector of electron mobility values.
A numeric vector of logs of electron density values.
These data are the result of a NIST study involving semiconductor electron mobility. The response variable is a measure of electron mobility, and the predictor variable is the natural log of the density.
Thurber, R., NIST (197?). Semiconductor electron mobility modeling.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | Try <- function(expr) if (!inherits(val <- try(expr), "try-error")) val
plot(y ~ x, data = Thurber)
Try(fm1 <- nls(y ~ (b1+x*(b2+x*(b3+b4*x))) / (1+x*(b5+x*(b6+x*b7))),
data = Thurber, trace = TRUE,
start = c(b1 = 1000, b2 = 1000, b3 = 400, b4 = 40,
b5 = 0.7, b6 = 0.3, b7 = 0.03)))
Try(fm1a <- nls(y ~ (b1+x*(b2+x*(b3+b4*x))) / (1+x*(b5+x*(b6+x*b7))),
data = Thurber, trace = TRUE, alg = "port",
start = c(b1 = 1000, b2 = 1000, b3 = 400, b4 = 40,
b5 = 0.7, b6 = 0.3, b7 = 0.03)))
Try(fm2 <- nls(y ~ (b1+x*(b2+x*(b3+b4*x))) / (1+x*(b5+x*(b6+x*b7))),
data = Thurber, trace = TRUE,
start = c(b1 = 1300, b2 = 1500, b3 = 500, b4 = 75,
b5 = 1, b6 = 0.4, b7 = 0.05)))
Try(fm2a <- nls(y ~ (b1+x*(b2+x*(b3+b4*x))) / (1+x*(b5+x*(b6+x*b7))),
data = Thurber, trace = TRUE, alg = "port",
start = c(b1 = 1300, b2 = 1500, b3 = 500, b4 = 75,
b5 = 1, b6 = 0.4, b7 = 0.05)))
Try(fm3 <- nls(y ~ outer(x, 0:3, "^")/(1+x*(b5+x*(b6+x*b7))),
data = Thurber, trace = TRUE,
start = c(b5 = 0.7, b6 = 0.3, b7 = 0.03), alg = "plinear"))
Try(fm4 <- nls(y ~ outer(x, 0:3, "^")/(1+x*(b5+x*(b6+x*b7))),
data = Thurber, trace = TRUE,
start = c(b5 = 1, b6 = 0.4, b7 = 0.05), alg = "plinear"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.