Learn R Programming

FIACH (version 0.1.2)

spmHrf: Canonical Haemodynamic Response Function.

Description

This function produces the impulse response for the canonical haemodynamic response function at a desired sampling rate.

Usage

spmHrf(RT, p = c(6, 16, 1, 1, 6, 0, 32))

Arguments

RT
RT is the desired sampling frequency. It must be specified in Hz(e.g. 1/16).
p
Default parameters for impulse response estimation identical to SPM's implementation.

Value

comp1
The first component of the list is the impulse response.
comp2
The second component are the parameters used to estimate it.

Examples

Run this code
RT<-1/16
can.hrf<-spmHrf(RT)[[1]]
x<-seq(0,32,RT)
plot(x,can.hrf,lwd=7,col="red",type="l",
main="Canonical HRF",xlab="Time(seconds)",
ylab="Intensity(A.U.)")

Run the code above in your browser using DataLab