Description Format Source Examples
The Sacch2
data frame has 10 rows and 2 columns from an
experiment on the pharmacokinetics of saccharin.
This data frame contains the following columns:
a numeric vector giving the time since drug administration (min).
a numeric vector giving the observed concentration of saccharin.
Bates and Watts (1998), Nonlinear Regression Analysis and Its Applications, Wiley (Appendix A1.5).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  str(Sacch2)
xyplot(conc ~ time, Sacch2, type = c("g", "b"),
xlab = "Time since drug administration (min)",
ylab = "Saccharin concentration", aspect = "xy")
xyplot(conc ~ time, data = Sacch2, type = c("g", "b"),
scales = list(y = list(log = 2)), aspect = 'xy',
xlab = "Time since drug administration (min)",
ylab = "Saccharin concentration")
## Not run:
fm1 < nls(conc ~ SSfol(1.0, time, lKe, lKa, lCl), data = Sacch2)
summary(fm1)
xpred < seq(0, 140, len = 51)
ypred < predict(fm1, list(time = xpred, Dose = rep(1.0, length(xpred))))
lines(xpred, ypred)
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.