Learn R Programming

bdots (version 2.0.0)

logistic_sac: Logistic saccade curve function for nlme

Description

And even cooler logistic fitting function, will think of a better name later

Usage

logistic_sac(dat, y, time, params = NULL, startSamp = 8, ...)

Arguments

dat

subject data to be used

y

outcome variable

time

time variable

params

NULL unless user wants to specify starting parameters for gnls

startSamp

how many samples from distribution should we use to investigate

...

just in case

Details

y ~ mini + (peak - mini) / (1 + exp(4 * slope * (cross - (time)) / (peak - mini)))