doubleGauss {bdots}R Documentation

Double Gauss curve function for nlme

Description

Double Gauss function used in fitting nlme curve for observations

Usage

doubleGauss(dat, y, time, params = NULL, concave = TRUE, ...)

Arguments

dat

subject data to be used

y

outcome variable, character vector

time

time variable, character vector

params

NULL unless user wants to specify starting parameters for gnls

concave

Boolean

...

just in case

Details

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)


[Package bdots version 1.2.5 Index]