Skip to contents

A hemodynamic response function using the difference of two Inverse Logit functions.

Usage

hrf_inv_logit(t, mu1 = 6, s1 = 1, mu2 = 16, s2 = 1, lag = 0)

Arguments

t

A vector of times.

mu1

The time-to-peak for the rising phase (mean of the first logistic function).

s1

The width (slope) of the first logistic function.

mu2

The time-to-peak for the falling phase (mean of the second logistic function).

s2

The width (slope) of the second logistic function.

lag

The time delay (default: 0).

Value

A vector of the difference of two Inverse Logit HRF values.

See also

Other hrf_functions: hrf_bspline(), hrf_gamma(), hrf_gaussian(), hrf_mexhat(), hrf_sine(), hrf_spmg1(), hrf_time()

Examples

hrf_inv_logit_basis <- hrf_diff_inv_logit(seq(0, 20, by = 0.5), mu1 = 6, s1 = 1, mu2 = 16, s2 = 1)
#> Error in hrf_diff_inv_logit(seq(0, 20, by = 0.5), mu1 = 6, s1 = 1, mu2 = 16,     s2 = 1): could not find function "hrf_diff_inv_logit"