spmHrf: Canonical Haemodynamic Response Function.

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

1
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.

Author(s)

Tim Tierney

Examples

1
2
3
4
5
6
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.)")

Example output

FIACH 0.1.2: For the Graphical User Interface enter GUI() into the console
Warning messages:
1: no DISPLAY variable so Tk is not available 
2: loading Rplot failed 

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to spmHrf in FIACH...