doubleGauss | R Documentation |
Double Gauss function used in fitting nlme curve for observations
doubleGauss(dat, y, time, params = NULL, concave = TRUE, ...)
dat |
subject data to be used |
y |
outcome variable, character vector |
time |
time variable, character vector |
params |
|
concave |
Boolean |
... |
just in case |
User should only have to worry about setting concavity of this function
y ~ (time < mu) * (exp(-1 * (time - mu) ^ 2
/ (2 * sig1 ^ 2)) * (ht - base1) + base1)
+ (mu <= time) * (exp(-1 * (time - mu) ^ 2
/ (2 * sig2 ^ 2)) * (ht - base2) + base2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.