polynomial | R Documentation |
Polynomial function used in fitting nlme curve for observations
polynomial(dat, y, time, degree, raw = TRUE, params = NULL, ...)
dat |
subject data to be used |
y |
outcome variable |
time |
time variable |
degree |
degree of polynomial |
raw |
Boolean, use raw polynomials? |
params |
|
... |
just in case |
It's recommended that one uses raw polynomials for this function for numerical stability. As inference is not performed on the parameters themselves, this should have minimial consequences
y ~ mini + (peak - mini) / (1 + exp(4 * slope * (cross - (time)) / (peak - mini)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.