Description Format Source Examples
The Lipo
data frame has 12 rows and 2 columns of lipoprotein
concentrations over time.
This data frame contains the following columns:
a numeric vector giving the time of the concentration measurement (hr)
a numeric vector of concentrations.
Bates and Watts (1998), Nonlinear Regression Analysis and Its Applications, Wiley (Appendix A4.1).
1 2 3 4 5 6 7 8 9 10 | plot(conc ~ time, data = Lipo,
xlab = "Time since drug administration (hr)",
ylab = "Lipoprotein concentration",
main = "Lipo data and fitted curve", las = 1)
fm1 <- nls(conc ~ SSbiexp(time, A1, lrc1, A2, lrc2), data = Lipo)
summary(fm1)
usr <- par("usr")
xx <- seq(usr[1], usr[2], len = 51)
lines(xx, predict(fm1, list(time = xx)))
title(sub = deparse(fm1$call$formula))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.